fix tline bug

This commit is contained in:
James Turk 2023-04-08 22:26:13 -05:00
parent 85a37ed070
commit 87ddbff355

View File

@ -191,8 +191,9 @@ function level_draw()
local zoom = 16 - (14 * (pieces / MAX_PIECES)) local zoom = 16 - (14 * (pieces / MAX_PIECES))
local h=24 * zoom local h=24 * zoom
for y=0,h do for y=0,h do
tline(0, 128-h+y, 128, 128-h+y, tline(0, 128-h+y, 128, 128-h+y, -- screen coordinates (entire screen scanlines)
(px)/(8*zoom), 2+y/(8*zoom), 1/(8*zoom), 0) px/80, 2+y/(8*zoom), 1/(8*zoom), 0)
-- don't scale x start with zoom, since position is not dependent
end end
toomgis_draw(20, 96-py) toomgis_draw(20, 96-py)