about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-19 16:35:52 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-19 16:35:52 -0700
commit21f166689a6904dd85da7ede2ce06e7b2ab81a27 (patch)
treea25a59df8a42c7a28d27d0d0b655f02e3a074623 /main.lua
parent58169561b789b962e849aab87e846d387f805201 (diff)
downloadtext.love-21f166689a6904dd85da7ede2ce06e7b2ab81a27.tar.gz
a few more integer coordinates
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 0856221..ab692e7 100644
--- a/main.lua
+++ b/main.lua
@@ -182,7 +182,7 @@ function keychord_pressed(chord)
     local y = Screen_height
     while y >= 0 do
       if Screen_top_line == 1 then break end
-      y = y - 15*Zoom
+      y = y - math.floor(15*Zoom)
       if Lines[Screen_top_line].mode == 'drawing' then
         y = y - Drawing.pixels(Lines[Screen_top_line].h)
       end