diff options
Diffstat (limited to 'examples/window')
| -rw-r--r-- | examples/window/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/window/main.lua b/examples/window/main.lua index 7ddf828..1fa5744 100644 --- a/examples/window/main.lua +++ b/examples/window/main.lua @@ -11,7 +11,7 @@ end function process( delta ) if RL_IsKeyPressed( KEY_ENTER ) then local textSize = RL_MeasureText( 0, text, 20, 2 ) - local winSize = RL_GetWindowSize() + local winSize = RL_GetScreenSize() textColor = BLUE textPos = { winSize[1] / 2 - textSize[1] / 2, winSize[2] / 2 - textSize[2] / 2 } |
