summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-02-04 23:51:24 -0500
committerJune McEnroe <programble@gmail.com>2018-02-04 23:51:24 -0500
commit9acb950c0a5e7a8ab4b33a6f0507f791c0067eba (patch)
tree978932bd1c069a896545832b884ea25c9c5c8244 /bin
parentReuse CGColorSpace and CGDataProvider in gfcocoa (diff)
downloadsrc-9acb950c0a5e7a8ab4b33a6f0507f791c0067eba.tar.gz
src-9acb950c0a5e7a8ab4b33a6f0507f791c0067eba.zip
Fix gfxx draw stop condition
Would not draw the last partially visible column when mirrored.
Diffstat (limited to '')
-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) {
er.c?h=ansi&id=811419e17b70f93cb85fc26c9b7227f53349a7a7&follow=1'>Assert client coords are valid after movementJune McEnroe 2017-09-03Relicense AGPLJune McEnroe 2017-09-01Revert "Add client readOnly mode"June McEnroe 2017-09-01Remove clientRemove call from clientCastJune McEnroe 2017-09-01Add client readOnly modeJune McEnroe 2017-08-31Clean up merge toolJune McEnroe 2017-08-31Choose B for tiles with equal modify timesJune McEnroe 2017-08-31Add quick data file merge toolJune McEnroe 2017-08-30Use only foreground color for selecting spawnJune McEnroe 2017-08-29Add four additional spawnsJune McEnroe 2017-08-28Add respawningJune McEnroe 2017-08-26Move license above includesJune McEnroe 2017-08-26Snapshot metadataJune McEnroe 2017-08-26Add meta.c to READMEJune McEnroe 2017-08-26Use MakefileJune McEnroe