Do the scaling/croping in Init, rather than each time through On.

This commit is contained in:
Steve Checkoway
2007-04-03 03:12:47 +00:00
parent 594e839bd1
commit e501603b52
@@ -1,4 +1,3 @@
return LoadActor( "bg.png" ) .. {
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y);
OnCommand=cmd(scale_or_crop_background);
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;scale_or_crop_background);
}