about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-16 18:54:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-16 18:54:54 -0700
commit71cb28e474173f17ccb84e99ededfe8c33b798d1 (patch)
treeb88fc2e669e7a06799920ed9712a0a4967f91c33
parent824bb491f7f7187442cf65e9f7033a91830ddd4e (diff)
downloadtext.love-71cb28e474173f17ccb84e99ededfe8c33b798d1.tar.gz
position cursor more precisely
I don't quite follow why this magic number needs to have this precise value.
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 365bf71..dd5f9e6 100644
--- a/main.lua
+++ b/main.lua
@@ -152,7 +152,7 @@ function love.draw()
   end
   -- cursor
   love.graphics.setColor(0,0,0)
-  love.graphics.print('_', 25+text:getWidth()*1.5, y)
+  love.graphics.print('_', 25+text:getWidth()*1.5, y+6)  -- drop the cursor down a bit to account for the increased font size
 end
 
 function love.update(dt)