diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 16:20:25 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 16:20:25 -0700 |
commit | d7ee9a75e43be4120c2a7f10ec0fd766ff268a1b (patch) | |
tree | 36ca527644dee73936039fe64db3f7682e5c2aa6 /edit.lua | |
parent | 3874f325f8e1c71c067ed4dd3e9caa6fc3a254fc (diff) | |
download | text.love-d7ee9a75e43be4120c2a7f10ec0fd766ff268a1b.tar.gz |
add state arg to Drawing.mouse_pressed
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/edit.lua b/edit.lua index f3e1f26..d70bfca 100644 --- a/edit.lua +++ b/edit.lua @@ -228,7 +228,7 @@ function edit.mouse_pressed(State, x,y, mouse_button) State.lines.current_drawing_index = line_index State.lines.current_drawing = line Drawing.before = snapshot(line_index) - Drawing.mouse_pressed(line, x,y, mouse_button) + Drawing.mouse_pressed(State, line, x,y, mouse_button) break end end |