about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-19 08:23:25 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-19 08:23:25 -0700
commit58169561b789b962e849aab87e846d387f805201 (patch)
tree92d7cfc17f930c48f839b13ded32c5e1fd735da7
parent76dbb4bd1eee8c650ccc5bd94f95666045032285 (diff)
downloadtext.love-58169561b789b962e849aab87e846d387f805201.tar.gz
this is a bit clearer
-rw-r--r--main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index d12a8e2..0856221 100644
--- a/main.lua
+++ b/main.lua
@@ -125,7 +125,7 @@ function love.draw()
             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
           end
-        y = math.floor(y+15*Zoom)  -- text height
+        y = y + math.floor(15*Zoom)  -- text height
       elseif line.mode == 'drawing' then
         y = y+10 -- padding
         line.y = y
@@ -134,7 +134,7 @@ function love.draw()
       else
         line.y = y
         Text.draw(line, line_index, Cursor_line, Cursor_pos)
-        y = math.floor(y+15*Zoom)  -- text height
+        y = y + math.floor(15*Zoom)  -- text height
       end
     end
   end