From 9acb950c0a5e7a8ab4b33a6f0507f791c0067eba Mon Sep 17 00:00:00 2001 From: Curtis 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 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) { -- cgit 1.4.1