about summary refs log tree commit diff stats
path: root/drawing.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-12 17:05:21 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-12 17:05:21 -0700
commit674d5715760043d9fd6b821827d96e5dffd73302 (patch)
tree9214eb152d5343f32b988394270689b343056f2b /drawing.lua
parent5aae52775963f098815b31de48467f3de501190b (diff)
downloadlines.love-674d5715760043d9fd6b821827d96e5dffd73302.tar.gz
add state arg to few functions
  - draw_help_without_mouse_pressed
  - draw_help_with_mouse_pressed
  - current_shape
Diffstat (limited to 'drawing.lua')
-rw-r--r--drawing.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/drawing.lua b/drawing.lua
index 806f09a..6f9d99c 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -16,13 +16,13 @@ function Drawing.draw(State, line)
     end
 
     if App.mouse_down(1) and love.keyboard.isDown('h') then
-      draw_help_with_mouse_pressed(line)
+      draw_help_with_mouse_pressed(State, line)
       return
     end
   end
 
   if line.show_help then
-    draw_help_without_mouse_pressed(line)
+    draw_help_without_mouse_pressed(State, line)
     return
   end