From 536e53067a65723eae1c31861bde6559efc4f189 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 4 Feb 2018 23:51:24 -0500 Subject: Fix gfxx draw stop condition Would not draw the last partially visible column when mirrored. --- bin/gfxx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/gfxx.c b/bin/gfxx.c index 0e1325b3..840c0e9b 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) { -- cgit 1.4.1