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:
parent
b63a33dd06
commit
18bb4624b3
2
main.lua
2
main.lua
|
@ -109,7 +109,7 @@ function love.draw()
|
||||||
local y = 0
|
local y = 0
|
||||||
for line_index,line in ipairs(Lines) do
|
for line_index,line in ipairs(Lines) do
|
||||||
if line_index >= Screen_top_line then
|
if line_index >= Screen_top_line then
|
||||||
y = y+15*Zoom
|
y = math.floor(y+15*Zoom)
|
||||||
if y > Screen_height then break end
|
if y > Screen_height then break end
|
||||||
Screen_bottom_line = line_index
|
Screen_bottom_line = line_index
|
||||||
line.y = y
|
line.y = y
|
||||||
|
|
Loading…
Reference in New Issue