From 87ddbff355d381d4b76b415140c90d7bdd98cfad Mon Sep 17 00:00:00 2001 From: James Turk Date: Sat, 8 Apr 2023 22:26:13 -0500 Subject: [PATCH] fix tline bug --- toomgis.p8 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toomgis.p8 b/toomgis.p8 index bca81c6..4c7d51a 100644 --- a/toomgis.p8 +++ b/toomgis.p8 @@ -191,8 +191,9 @@ function level_draw() local zoom = 16 - (14 * (pieces / MAX_PIECES)) local h=24 * zoom for y=0,h do - tline(0, 128-h+y, 128, 128-h+y, - (px)/(8*zoom), 2+y/(8*zoom), 1/(8*zoom), 0) + tline(0, 128-h+y, 128, 128-h+y, -- screen coordinates (entire screen scanlines) + px/80, 2+y/(8*zoom), 1/(8*zoom), 0) + -- don't scale x start with zoom, since position is not dependent end toomgis_draw(20, 96-py)