mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 02:17:53 +02:00
Update gui.lua
This commit is contained in:
parent
e0b0a286e3
commit
fe8341263a
@ -20,10 +20,10 @@ local LAYOUT_CHANGED = hash("layout_changed")
|
|||||||
function M.window_resized(width, height)
|
function M.window_resized(width, height)
|
||||||
WIDTH = width
|
WIDTH = width
|
||||||
HEIGHT = height
|
HEIGHT = height
|
||||||
LEFT = vmath.vector3(-WIDTH * 2, 0, 0)
|
LEFT = vmath.vector3(-WIDTH, 0, 0)
|
||||||
RIGHT = vmath.vector3(WIDTH * 2, 0, 0)
|
RIGHT = vmath.vector3(WIDTH, 0, 0)
|
||||||
TOP = vmath.vector3(0, HEIGHT * 2, 0)
|
TOP = vmath.vector3(0, HEIGHT, 0)
|
||||||
BOTTOM = vmath.vector3(0, - HEIGHT * 2, 0)
|
BOTTOM = vmath.vector3(0, - HEIGHT, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.window_resized(tonumber(sys.get_config("display.width")), tonumber(sys.get_config("display.height")))
|
M.window_resized(tonumber(sys.get_config("display.width")), tonumber(sys.get_config("display.height")))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user