summaryrefslogtreecommitdiff
path: root/examples/n-patches
diff options
context:
space:
mode:
Diffstat (limited to 'examples/n-patches')
-rw-r--r--examples/n-patches/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/n-patches/main.lua b/examples/n-patches/main.lua
index aba3d2c..c45b828 100644
--- a/examples/n-patches/main.lua
+++ b/examples/n-patches/main.lua
@@ -21,7 +21,7 @@ function RL.init()
end
function RL.update( delta )
- local mousePosition = Vec2:new( RL.GetMousePosition() )
+ local mousePosition = Vec2:newT( RL.GetMousePosition() )
-- Resize the n-patch based on mouse position
dstRec.width = mousePosition.x - dstRec.x;