diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-20 05:40:42 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-20 05:40:42 -0700 |
commit | 5f2ef2faafa19e095ec5d447d0e24f98c473d31a (patch) | |
tree | 7479c5254e951f3351d3abd63538f011a32411f5 /main.lua | |
parent | e223182ad55ca79f864c93641664ce85b389582b (diff) | |
download | lines.love-5f2ef2faafa19e095ec5d447d0e24f98c473d31a.tar.gz |
extract a function
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main.lua b/main.lua index 5c1abd9..19f9b21 100644 --- a/main.lua +++ b/main.lua @@ -116,10 +116,7 @@ function love.draw() end end}) if line_index == Cursor_line then - -- cursor - love.graphics.setColor(1,0,0) - love.graphics.circle('fill', 25,y+math.floor(15*Zoom), 2) - love.graphics.setColor(0,0,0) + Text.draw_cursor(25, y) end y = y + math.floor(15*Zoom) -- text height elseif line.mode == 'drawing' then |