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