Actor:FullScreen
This commit is contained in:
@@ -92,6 +92,10 @@ function Actor:align(h, v)
|
|||||||
self:valign( v );
|
self:valign( v );
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Actor:FullScreen()
|
||||||
|
self:stretchto( 0,0,SCREEN_WIDTH,SCREEN_HEIGHT );
|
||||||
|
end
|
||||||
|
|
||||||
-- Most backgrounds are 640x480. Some are 768x480. Stretch the 640x480 ones.
|
-- Most backgrounds are 640x480. Some are 768x480. Stretch the 640x480 ones.
|
||||||
function Actor:scale_or_crop_background()
|
function Actor:scale_or_crop_background()
|
||||||
if self:GetWidth() == 640 and self:GetHeight() == 480 then
|
if self:GetWidth() == 640 and self:GetHeight() == 480 then
|
||||||
|
|||||||
Reference in New Issue
Block a user