about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-19 22:34:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-19 22:34:28 -0700
commit7749e459a72f0a58f334567c70f0e2268a4e19f1 (patch)
treeef3e5acf0b6cf8e77eef60d6a147b759420338e6 /text.lua
parent8f85b29893b0b1275558e3bf31c2b29f38a3029a (diff)
downloadlines.love-7749e459a72f0a58f334567c70f0e2268a4e19f1.tar.gz
change text cursor shape
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua3
1 files changed, 2 insertions, 1 deletions
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