diff options
| author | jussi | 2022-09-22 20:25:18 +0300 |
|---|---|---|
| committer | jussi | 2022-09-22 20:25:18 +0300 |
| commit | 0fad8239b626678980f7f8093c0602acbe5c817b (patch) | |
| tree | 2c6f9f3fcf0f873c89d231d512fe1c006e9f7074 /examples/gui | |
| parent | e5f437d05e8277861ea85e6c8d2ede32c4be32ef (diff) | |
| download | reilua-enhanced-0fad8239b626678980f7f8093c0602acbe5c817b.tar.gz reilua-enhanced-0fad8239b626678980f7f8093c0602acbe5c817b.tar.bz2 reilua-enhanced-0fad8239b626678980f7f8093c0602acbe5c817b.zip | |
v0.3.
Diffstat (limited to 'examples/gui')
| -rw-r--r-- | examples/gui/main.lua | 3 |
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 |
