summary refs log tree commit diff
path: root/bin/gfxx.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-02-05 17:43:12 -0500
committerJune McEnroe <june@causal.agency>2018-02-05 17:43:12 -0500
commit46e57aa4ce1917b12a95cee9215e552199cc894b (patch)
tree67bd59aa7c471278df9919de99b87f77aa44b04e /bin/gfxx.c
parentAlways skip most significant bits in gfxx (diff)
downloadsrc-46e57aa4ce1917b12a95cee9215e552199cc894b.tar.gz
src-46e57aa4ce1917b12a95cee9215e552199cc894b.zip
Take scale into account for when to stop drawing in gfxx
Diffstat (limited to 'bin/gfxx.c')
-rw-r--r--bin/gfxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gfxx.c b/bin/gfxx.c
index ead9e2cd..1dfb3bfa 100644
--- a/bin/gfxx.c
+++ b/bin/gfxx.c
@@ -182,7 +182,7 @@ static bool nextY(struct Iter *it) {
     }
     it->x = it->left;
     if (mirror) it->x += width - 1;
-    return (it->left < it->xres);
+    return (it->left < it->xres / scale);
 }
 
 static bool next(struct Iter *it) {