delete unused arg
This commit is contained in:
parent
18bb4624b3
commit
d482694a2a
|
@ -2,7 +2,7 @@
|
||||||
Drawing = {}
|
Drawing = {}
|
||||||
geom = require 'geom'
|
geom = require 'geom'
|
||||||
|
|
||||||
function Drawing.draw(line, y)
|
function Drawing.draw(line)
|
||||||
local pmx,pmy = love.mouse.getX(), love.mouse.getY()
|
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
|
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)
|
love.graphics.setColor(0.75,0.75,0.75)
|
||||||
|
|
2
main.lua
2
main.lua
|
@ -128,7 +128,7 @@ function love.draw()
|
||||||
end
|
end
|
||||||
elseif line.mode == 'drawing' then
|
elseif line.mode == 'drawing' then
|
||||||
y = y+Drawing.pixels(line.h)
|
y = y+Drawing.pixels(line.h)
|
||||||
Drawing.draw(line, y)
|
Drawing.draw(line)
|
||||||
else
|
else
|
||||||
Text.draw(line, line_index, Cursor_line, y, Cursor_pos)
|
Text.draw(line, line_index, Cursor_line, y, Cursor_pos)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue