From 40779f4daaf41ef7503b5ea540552069c3ea6e51 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Fri, 6 Jan 2012 01:53:52 -0600 Subject: [PATCH] okay, this seems to work better for scale_or_crop_background(), but I haven't tested it with things like 320x240 backgrounds yet. --- Themes/_fallback/Scripts/02 Actor.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Themes/_fallback/Scripts/02 Actor.lua b/Themes/_fallback/Scripts/02 Actor.lua index 587dab08e3..626559ef5a 100644 --- a/Themes/_fallback/Scripts/02 Actor.lua +++ b/Themes/_fallback/Scripts/02 Actor.lua @@ -168,16 +168,7 @@ function Actor:scale_or_crop_background() -- bga matches the current aspect, we can stretch it. self:stretchto( 0,0,SCREEN_WIDTH,SCREEN_HEIGHT ) else - -- temp - self:scaletocover( 0,0,SCREEN_WIDTH,SCREEN_HEIGHT ) - --[[ - -- bga doesn't match the aspect. - if displayAspect > graphicAspect then - -- the graphic is smaller than the display aspect ratio - else - -- the graphic is bigger than the display aspect ratio; crop me - end - --]] + self:scaletofit( SCREEN_CENTER_X-(gw/2),SCREEN_TOP,SCREEN_CENTER_X+(gw/2),SCREEN_HEIGHT) end end