about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-09 13:26:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-09 13:26:49 -0700
commit06fae39088c5e62b6fbc82c47fa80c17c4aa2ee3 (patch)
tree6aa1bded5e59f28ea150aaf4a620fe86224f2607
parentb418e60e6a4d4fa24d3b19c9485a98a4dbfe29da (diff)
downloadtext.love-06fae39088c5e62b6fbc82c47fa80c17c4aa2ee3.tar.gz
make the cursor a little thicker
I'm testing this by moving the cursor around with my eyes closed, then
starting a stopwatch as I open my eyes. This seems to help a bit. I'm
able to acquire the cursor in 2s. At least the 10s outliers I used to
have with the circle or thin line don't seem to be happening.
-rw-r--r--text.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.lua b/text.lua
index ca4a52c..3e86d27 100644
--- a/text.lua
+++ b/text.lua
@@ -86,7 +86,7 @@ end
 
 function Text.draw_cursor(x, y)
   love.graphics.setColor(1,0,0)
-  love.graphics.line(x,y, x,y+Line_height)
+  love.graphics.rectangle('fill', x,y, 3,Line_height)
   love.graphics.setColor(0,0,0)
   Cursor_x = x
   Cursor_y = y+Line_height