From 3414f0a11ddaa7a04be9a7128ba6a7f352b7e24e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 30 May 2022 15:29:57 -0700 Subject: bugfix: function names --- drawing.lua | 6 +++--- 1 file 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] -- cgit 1.4.1-2-gfad0