By the by, StretchBackgrounds is hardcoded
By the by, StretchBackgrounds is hardcoded or used by whatever calls this. Also, only you can prevent pillarboxing.
This commit is contained in:
@@ -152,12 +152,7 @@ function Actor:FullScreen()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Actor:scale_or_crop_background()
|
function Actor:scale_or_crop_background()
|
||||||
if PREFSMAN:GetPreference("StretchBackgrounds") then
|
self:scaletocover(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)
|
||||||
self:cropto(SCREEN_WIDTH, SCREEN_HEIGHT)
|
|
||||||
else
|
|
||||||
local graphicAspect = self:GetWidth()/self:GetHeight()
|
|
||||||
self:zoomto(SCREEN_HEIGHT*graphicAspect,SCREEN_HEIGHT)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Actor:CenterX() self:x(SCREEN_CENTER_X) end
|
function Actor:CenterX() self:x(SCREEN_CENTER_X) end
|
||||||
|
|||||||
Reference in New Issue
Block a user