about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--drawing.lua2
-rw-r--r--main.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/drawing.lua b/drawing.lua
index 7047893..54fb2c2 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -2,7 +2,7 @@
 Drawing = {}
 geom = require 'geom'
 
-function Drawing.draw(line, y)
+function Drawing.draw(line)
   local pmx,pmy = love.mouse.getX(), love.mouse.getY()
   if pmx < 16+Drawing_width and pmy > line.y and pmy < line.y+Drawing.pixels(line.h) then
     love.graphics.setColor(0.75,0.75,0.75)
diff --git a/main.lua b/main.lua
index a1410fe..bb00148 100644
--- a/main.lua
+++ b/main.lua
@@ -128,7 +128,7 @@ function love.draw()
           end
       elseif line.mode == 'drawing' then
         y = y+Drawing.pixels(line.h)
-        Drawing.draw(line, y)
+        Drawing.draw(line)
       else
         Text.draw(line, line_index, Cursor_line, y, Cursor_pos)
       end