about summary refs log tree commit diff stats
path: root/drawing.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2025-05-06 15:01:21 -0700
committerKartik K. Agaram <vc@akkartik.com>2025-05-06 15:01:21 -0700
commitaba01abc23c791ece7607f167f3a98cb782dba53 (patch)
treed8ee4bf7536446100c2214f406ed8405a777eb3f /drawing.lua
parent9c3bf97ea3345aa0ffdbc35b234689a5edca73ea (diff)
parent11cd9123c15f9b9e76c359a8ac672c21f299811a (diff)
downloadview.love-aba01abc23c791ece7607f167f3a98cb782dba53.tar.gz
Merge lines.love
Diffstat (limited to 'drawing.lua')
-rw-r--r--drawing.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/drawing.lua b/drawing.lua
index 92e3d5f..b74855a 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -221,7 +221,7 @@ function Drawing.in_drawing(State, line_index, x,y, left,right)
   return y >= starty and y < starty + Drawing.pixels(drawing.h, width) and x >= left and x < right
 end
 
-function Drawing.mouse_press(State, drawing_index, x,y, mouse_button)
+function Drawing.mouse_press(State, drawing_index, x,y, mouse_button, is_touch, presses)
   local drawing = State.lines[drawing_index]
   local starty = Text.starty(State, drawing_index)
   local cx = Drawing.coord(x-State.left, State.width)
@@ -300,7 +300,7 @@ function Drawing.relax_constraints(drawing, p)
   end
 end
 
-function Drawing.mouse_release(State, x,y, mouse_button)
+function Drawing.mouse_release(State, x,y, mouse_button, is_touch, presses)
   if State.current_drawing_mode == 'move' then
     State.current_drawing_mode = State.previous_drawing_mode
     State.previous_drawing_mode = nil
@@ -396,7 +396,7 @@ function Drawing.mouse_release(State, x,y, mouse_button)
   end
 end
 
-function Drawing.keychord_press(State, chord)
+function Drawing.keychord_press(State, chord, key, scancode, is_repeat)
   if chord == 'C-p' and not App.mouse_down(1) then
     State.current_drawing_mode = 'freehand'
   elseif App.mouse_down(1) and chord == 'l' then