Do the scaling/croping in Init, rather than each time through On.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
return LoadActor( "bg.png" ) .. {
|
return LoadActor( "bg.png" ) .. {
|
||||||
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y);
|
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background);
|
||||||
OnCommand=cmd(scale_or_crop_background);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user