diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 15:29:57 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-30 15:29:57 -0700 |
commit | 3414f0a11ddaa7a04be9a7128ba6a7f352b7e24e (patch) | |
tree | 0cadd98285b331dcb16d67e41d94c8e51ed9ce0f | |
parent | 096f6255b2733c49b2d4cb4edf15e08d0b58f18a (diff) | |
download | lines.love-3414f0a11ddaa7a04be9a7128ba6a7f352b7e24e.tar.gz |
bugfix: function names
-rw-r--r-- | drawing.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drawing.lua b/drawing.lua index 245d27b..3e2db42 100644 --- a/drawing.lua +++ b/drawing.lua @@ -458,7 +458,7 @@ function Drawing.keychord_pressed(chord) Current_drawing_mode = 'line' local drawing,_,shape = Drawing.select_shape_at_mouse() if drawing then - convert_line(drawing, shape) + Drawing.convert_line(drawing, shape) end elseif love.mouse.isDown('1') and chord == 'm' then Current_drawing_mode = 'manhattan' @@ -477,7 +477,7 @@ function Drawing.keychord_pressed(chord) Current_drawing_mode = 'manhattan' local drawing,_,shape = Drawing.select_shape_at_mouse() if drawing then - convert_horvert(drawing, shape) + Drawing.convert_horvert(drawing, shape) end elseif chord == 'C-s' and not love.mouse.isDown('1') then local drawing,_,shape = Drawing.select_shape_at_mouse() @@ -680,7 +680,7 @@ end -- turn a line either horizontal or vertical function Drawing.convert_horvert(drawing, shape) if shape.mode == 'freehand' then - convert_line(shape) + Drawing.convert_line(shape) end assert(shape.mode == 'line') local p1 = drawing.points[shape.p1] |