ensure integer coordinates

https://love2d.org/wiki/Text says text can appear blurry otherwise.
I can't tell yet, though.
This commit is contained in:
Kartik K. Agaram 2022-05-19 04:28:08 -07:00
parent b63a33dd06
commit 18bb4624b3

View File

@ -109,7 +109,7 @@ function love.draw()
local y = 0
for line_index,line in ipairs(Lines) do
if line_index >= Screen_top_line then
y = y+15*Zoom
y = math.floor(y+15*Zoom)
if y > Screen_height then break end
Screen_bottom_line = line_index
line.y = y