From effb1d461302298c3495367c126bcbbae6a526a7 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 27 Apr 2021 23:53:54 -0400 Subject: [PATCH] [sixel] get last column in wipes --- src/lib/sixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sixel.c b/src/lib/sixel.c index 5f0c377c1..625e516d9 100644 --- a/src/lib/sixel.c +++ b/src/lib/sixel.c @@ -746,7 +746,7 @@ wipe_color(sixelmap* smap, int color, int sband, int eband, } //fprintf(stderr, "s/e: %d/%d mask: %02x\n", starty, endy, mask); } - for(int x = startx ; x < endx ; ++x){ + for(int x = startx ; x <= endx ; ++x){ const int xoff = boff + x; //fprintf(stderr, "band: %d color: %d idx: %d\n", b, color, color * smap->sixelcount + xoff); //fprintf(stderr, "color: %d idx: %d data: %02x\n", color, color * smap->sixelcount + xoff, smap->data[color * smap->sixelcount + xoff]);