From 70b40f67824b3d612235c382aa83821c054fa51e Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 17 Apr 2024 00:35:58 +0300 Subject: Object libraries like Vector2 optimizations. --- examples/stencil_reflection/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/stencil_reflection') 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 } ) -- cgit v1.2.3