about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-11 22:01:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-11 22:01:30 -0700
commitd2d54db1f943b175130f6a42a08914f6c709b643 (patch)
tree84d169f3e3de27ffc6da3093e3b60f0210c30591 /main.lua
parent6c4483976e49c3f63944a9ee6c00c585bc1105be (diff)
downloadlines.love-d2d54db1f943b175130f6a42a08914f6c709b643.tar.gz
fix a variable name
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.lua b/main.lua
index 453d5ff..c5da057 100644
--- a/main.lua
+++ b/main.lua
@@ -363,20 +363,20 @@ function App.mousepressed(x,y, mouse_button)
         Lines.current_drawing_index = line_index
         Lines.current_drawing = line
         Drawing.before = snapshot(line_index)
-        Drawing.mouse_pressed(line, x,y, button)
+        Drawing.mouse_pressed(line, x,y, mouse_button)
         break
       end
     end
   end
 end
 
-function App.mousereleased(x,y, button)
+function App.mousereleased(x,y, mouse_button)
   if Search_term then return end
 --?   print('release')
   -- ensure cursor is visible immediately after it moves
   Cursor_time = 0
   if Lines.current_drawing then
-    Drawing.mouse_released(x,y, button)
+    Drawing.mouse_released(x,y, mouse_button)
     schedule_save()
     if Drawing.before then
       record_undo_event({before=Drawing.before, after=snapshot(Lines.current_drawing_index)})