Fix white background bleeding through sixel images:

Tested with and without alpha patch applied. Simply setting alpha to 255
seems to fix it. I didn't set `dst` on lines 263 and 273 because those
loops are impossible to reach.
This commit is contained in:
dosisod 2021-09-12 11:18:06 -07:00
parent c02ad97409
commit a11209e6ed

View File

@ -252,7 +252,7 @@ sixel_parser_finalize(sixel_state_t *st, unsigned char *pixels)
*dst++ = color >> 16 & 0xff; /* b */
*dst++ = color >> 8 & 0xff; /* g */
*dst++ = color >> 0 & 0xff; /* r */
dst++; /* a */
*dst++ = 255; /* a */
}
/* fill right padding with bgcolor */
for (; x < st->image.width; ++x) {