mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
some cleanup in modules, fixes in tooltip, uiwidget warnings, disable map saving for a while
This commit is contained in:
@@ -15,9 +15,9 @@ function Client.init()
|
||||
|
||||
-- window position, default is the screen center
|
||||
local displaySize = g_window.getDisplaySize()
|
||||
local pos = { x = (displaySize.width - size.width)/2,
|
||||
y = (displaySize.height - size.height)/2 }
|
||||
pos = Settings.getPoint('window-pos', pos)
|
||||
local defaultPos = { x = (displaySize.width - size.width)/2,
|
||||
y = (displaySize.height - size.height)/2 }
|
||||
local pos = Settings.getPoint('window-pos', defaultPos)
|
||||
g_window.move(pos)
|
||||
|
||||
-- window maximized?
|
||||
|
Reference in New Issue
Block a user