Crop the background to fit instead of pillarboxing it
(Sourced from shakesoda/stepmania.)
This commit is contained in:
@@ -152,8 +152,7 @@ function Actor:FullScreen()
|
||||
end
|
||||
|
||||
function Actor:scale_or_crop_background()
|
||||
local graphicAspect = self:GetWidth()/self:GetHeight()
|
||||
self:zoomto(SCREEN_HEIGHT*graphicAspect,SCREEN_HEIGHT)
|
||||
self:cropto(SCREEN_WIDTH, SCREEN_HEIGHT)
|
||||
end
|
||||
|
||||
function Actor:CenterX() self:x(SCREEN_CENTER_X) end
|
||||
|
||||
Reference in New Issue
Block a user