Changed Actor:scale_or_crop_background back to forcing the actor to the screen center. Changed LogDisplay's IgnoreIdentical to not ignore when hidden.
This commit is contained in:
@@ -178,7 +178,7 @@ bg_fit_functions= {
|
||||
end
|
||||
}
|
||||
|
||||
function Actor:scale_or_crop_background()
|
||||
function Actor:scale_or_crop_background_no_move()
|
||||
local fit_mode= PREFSMAN:GetPreference("BackgroundFitMode")
|
||||
if bg_fit_functions[fit_mode] then
|
||||
bg_fit_functions[fit_mode](self, SCREEN_WIDTH, SCREEN_HEIGHT)
|
||||
@@ -187,6 +187,11 @@ function Actor:scale_or_crop_background()
|
||||
end
|
||||
end
|
||||
|
||||
function Actor:scale_or_crop_background()
|
||||
self:scale_or_crop_background_no_move()
|
||||
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y)
|
||||
end
|
||||
|
||||
function Actor:CenterX() self:x(SCREEN_CENTER_X) end
|
||||
function Actor:CenterY() self:y(SCREEN_CENTER_Y) end
|
||||
function Actor:Center() self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y) end
|
||||
|
||||
Reference in New Issue
Block a user