mirror of
https://github.com/edubart/otclient.git
synced 2025-11-02 19:56:24 +01:00
Progress in SDL platform
This commit is contained in:
@@ -63,8 +63,8 @@ function init()
|
||||
|
||||
-- initialize in fullscreen mode on mobile devices
|
||||
if g_app.getOs() == "android" then
|
||||
g_window.setFullscreen(true)
|
||||
g_window.maximize()
|
||||
--g_window.setFullscreen(true)
|
||||
else
|
||||
-- window size
|
||||
local size = { width = 800, height = 600 }
|
||||
|
||||
@@ -746,6 +746,7 @@ function setupViewMode(mode)
|
||||
gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
|
||||
elseif mode == 2 then
|
||||
local limit = limitZoom and not g_game.isGM()
|
||||
gameMapPanel:setKeepAspectRatio(false)
|
||||
gameMapPanel:setLimitVisibleRange(limit)
|
||||
gameMapPanel:setZoom(11)
|
||||
gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
|
||||
|
||||
Reference in New Issue
Block a user