Crop the background to fit instead of pillarboxing it

(Sourced from shakesoda/stepmania.)
This commit is contained in:
Colby Klein
2013-10-05 21:00:54 -07:00
parent b845c4c119
commit f91be6cf9f
+1 -2
View File
@@ -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