about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.lua5
-rw-r--r--text.lua3
2 files changed, 5 insertions, 3 deletions
diff --git a/main.lua b/main.lua
index 0cd5274..5583380 100644
--- a/main.lua
+++ b/main.lua
@@ -116,8 +116,9 @@ function love.draw()
                        end
                      end})
           if line_index == Cursor_line then
-            love.graphics.setColor(0,0,0)
-            love.graphics.print('_', 25, y+6)  -- drop the cursor down a bit to account for the increased font size
+            -- cursor
+            love.graphics.setColor(1,0,0)
+            love.graphics.circle('fill', 25,y+math.floor(15*Zoom), 2)
           end
         y = y + math.floor(15*Zoom)  -- text height
       elseif line.mode == 'drawing' then
diff --git a/text.lua b/text.lua
index 647a71d..dc9a42a 100644
--- a/text.lua
+++ b/text.lua
@@ -68,7 +68,8 @@ function Text.draw(line, line_width, line_index, cursor_line, cursor_pos)
     if line_index == cursor_line then
       if pos <= cursor_pos and pos + frag_len > cursor_pos then
         -- cursor
-        love.graphics.print('_', x+Text.cursor_x2(frag, cursor_pos-pos+1), y+6)  -- drop the cursor down a bit to account for the increased font size
+        love.graphics.setColor(1,0,0)
+        love.graphics.circle('fill', x+Text.cursor_x2(frag, cursor_pos-pos+1),y+math.floor(15*Zoom), 2)
       end
     end
     x = x + frag_width