simpler
This commit is contained in:
parent
f69e17d350
commit
f144bdfc20
2
main.lua
2
main.lua
|
@ -108,9 +108,9 @@ function love.draw()
|
||||||
end
|
end
|
||||||
local y = 0
|
local y = 0
|
||||||
for line_index,line in ipairs(Lines) do
|
for line_index,line in ipairs(Lines) do
|
||||||
|
if y > Screen_height then break end
|
||||||
if line_index >= Screen_top_line then
|
if line_index >= Screen_top_line then
|
||||||
y = math.floor(y+15*Zoom)
|
y = math.floor(y+15*Zoom)
|
||||||
if y > Screen_height then break end
|
|
||||||
Screen_bottom_line = line_index
|
Screen_bottom_line = line_index
|
||||||
line.y = y
|
line.y = y
|
||||||
if line.mode == 'text' and line.data == '' then
|
if line.mode == 'text' and line.data == '' then
|
||||||
|
|
Loading…
Reference in New Issue