fix fullscreen mode on ARM

This commit is contained in:
Eduardo Bart 2011-12-30 04:36:10 -02:00
parent d6e818e648
commit 08fbedce38
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@ Client = { }
-- TODO: load and save configurations -- TODO: load and save configurations
function Client.init() function Client.init()
g_window.show()
-- initialize in fullscreen mode on mobile devices -- initialize in fullscreen mode on mobile devices
if g_window.getPlatformType() == "X11-EGL" then if g_window.getPlatformType() == "X11-EGL" then
g_window.setFullscreen(true) g_window.setFullscreen(true)
@ -9,6 +11,7 @@ function Client.init()
g_window.move({ x=220, y=220 }) g_window.move({ x=220, y=220 })
g_window.resize({ width=800, height=480 }) g_window.resize({ width=800, height=480 })
end end
g_window.setTitle('OTClient') g_window.setTitle('OTClient')
g_window.setIcon('clienticon.png') g_window.setIcon('clienticon.png')
return true return true