Actor:FullScreen

This commit is contained in:
Glenn Maynard
2007-04-17 22:04:58 +00:00
parent f3d6b7a7e1
commit 3e5206f810
@@ -92,6 +92,10 @@ function Actor:align(h, v)
self:valign( v );
end
function Actor:FullScreen()
self:stretchto( 0,0,SCREEN_WIDTH,SCREEN_HEIGHT );
end
-- Most backgrounds are 640x480. Some are 768x480. Stretch the 640x480 ones.
function Actor:scale_or_crop_background()
if self:GetWidth() == 640 and self:GetHeight() == 480 then