summary refs log tree commit diff
path: root/bin/gfxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gfxx.c')
-rw-r--r--bin/gfxx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/gfxx.c b/bin/gfxx.c
index 1477a8c7..2b19c4ef 100644
--- a/bin/gfxx.c
+++ b/bin/gfxx.c
@@ -152,7 +152,6 @@ static bool next(struct Pos *pos) {
             pos->left += width;
             pos->x = pos->left + width;
             pos->y = 0;
-            if (pos->x > pos->xres) return false;
         }
         pos->x--;
     } else {
@@ -165,10 +164,9 @@ static bool next(struct Pos *pos) {
             pos->left += width;
             pos->x = pos->left;
             pos->y = 0;
-            if (pos->x > pos->xres) return false;
         }
     }
-    return true;
+    return (pos->left < pos->xres);
 }
 
 static void put(const struct Pos *pos, uint32_t p) {