summaryrefslogtreecommitdiff
path: root/examples/stencil_reflection
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stencil_reflection')
-rw-r--r--examples/stencil_reflection/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stencil_reflection/main.lua b/examples/stencil_reflection/main.lua
index 9b57a47..f9ca2cc 100644
--- a/examples/stencil_reflection/main.lua
+++ b/examples/stencil_reflection/main.lua
@@ -13,9 +13,9 @@ function RL.init()
RL.SetWindowState( RL.FLAG_VSYNC_HINT )
RL.SetWindowState( RL.FLAG_WINDOW_RESIZABLE )
- local mPos = Vec2:new( RL.GetMonitorPosition( monitor ) )
- local mSize = Vec2:new( RL.GetMonitorSize( monitor ) )
- local winSize = Vec2:new( RL.GetScreenSize() )
+ local mPos = Vec2:newT( RL.GetMonitorPosition( monitor ) )
+ local mSize = Vec2:newT( RL.GetMonitorSize( monitor ) )
+ local winSize = Vec2:newT( RL.GetScreenSize() )
RL.SetWindowPosition( { mPos.x + mSize.x / 2 - winSize.x / 2, mPos.y + mSize.y / 2 - winSize.y / 2 } )