mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
cache rendering of UILabel
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Client = {}
|
||||
|
||||
local function setupWindow()
|
||||
function Client.init()
|
||||
g_window.show()
|
||||
g_window.setMinimumSize({ width = 600, height = 480 })
|
||||
|
||||
@@ -29,11 +29,8 @@ local function setupWindow()
|
||||
g_window.setIcon(resolvepath('clienticon.png'))
|
||||
end
|
||||
|
||||
function Client.init()
|
||||
setupWindow()
|
||||
end
|
||||
|
||||
function Client.terminate()
|
||||
-- save window configs
|
||||
Settings.set('window-size', g_window.getUnmaximizedSize())
|
||||
Settings.set('window-pos', g_window.getUnmaximizedPos())
|
||||
Settings.set('window-maximized', g_window.isMaximized())
|
||||
|
Reference in New Issue
Block a user