summaryrefslogtreecommitdiff
path: root/examples/gui
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gui')
-rw-r--r--examples/gui/main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/gui/main.lua b/examples/gui/main.lua
index e412201..e569b0a 100644
--- a/examples/gui/main.lua
+++ b/examples/gui/main.lua
@@ -24,11 +24,12 @@ function init()
local monitor = 0
local mPos = RL_GetMonitorPosition( monitor )
local mSize = RL_GetMonitorSize( monitor )
- local winSize = RL_GetWindowSize()
+ local winSize = { 1920, 1080 }
RL_GuiSetFont( 0 )
RL_SetWindowState( FLAG_WINDOW_RESIZABLE )
RL_SetWindowState( FLAG_VSYNC_HINT )
+ RL_SetWindowSize( winSize )
RL_SetWindowPosition( { mPos[1] + mSize[1] / 2 - winSize[1] / 2, mPos[2] + mSize[2] / 2 - winSize[2] / 2 } )
end