From 0fad8239b626678980f7f8093c0602acbe5c817b Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 22 Sep 2022 20:25:18 +0300 Subject: v0.3. --- examples/gui/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/gui/main.lua') 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 -- cgit v1.2.3