From 5feef28f4d352274c500e6b2706c2be609f463cc Mon Sep 17 00:00:00 2001 From: Colby Klein Date: Sun, 20 Oct 2013 10:10:29 -0700 Subject: [PATCH] By the by, StretchBackgrounds is hardcoded By the by, StretchBackgrounds is hardcoded or used by whatever calls this. Also, only you can prevent pillarboxing. --- Themes/_fallback/Scripts/02 Actor.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Themes/_fallback/Scripts/02 Actor.lua b/Themes/_fallback/Scripts/02 Actor.lua index 53364d203e..abcdfc3d8b 100644 --- a/Themes/_fallback/Scripts/02 Actor.lua +++ b/Themes/_fallback/Scripts/02 Actor.lua @@ -152,12 +152,7 @@ function Actor:FullScreen() end function Actor:scale_or_crop_background() - if PREFSMAN:GetPreference("StretchBackgrounds") then - self:cropto(SCREEN_WIDTH, SCREEN_HEIGHT) - else - local graphicAspect = self:GetWidth()/self:GetHeight() - self:zoomto(SCREEN_HEIGHT*graphicAspect,SCREEN_HEIGHT) - end + self:scaletocover(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT) end function Actor:CenterX() self:x(SCREEN_CENTER_X) end