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/basic_lighting/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/basic_lighting/main.lua') diff --git a/examples/basic_lighting/main.lua b/examples/basic_lighting/main.lua index 1a5417e..52552c3 100644 --- a/examples/basic_lighting/main.lua +++ b/examples/basic_lighting/main.lua @@ -18,8 +18,8 @@ local shader = -1 local lights = {} function RL.init() - local mPos = Vec2:new( RL.GetMonitorPosition( monitor ) ) - local mSize = Vec2:new( RL.GetMonitorSize( monitor ) ) + local mPos = Vec2:newT( RL.GetMonitorPosition( monitor ) ) + local mSize = Vec2:newT( RL.GetMonitorSize( monitor ) ) local winSize = Vec2:new( 1028, 720 ) RL.SetWindowTitle( "Simple Lighting" ) -- cgit v1.2.3