mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
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:
parent
c02ad97409
commit
a11209e6ed
2
sixel.c
2
sixel.c
@ -252,7 +252,7 @@ sixel_parser_finalize(sixel_state_t *st, unsigned char *pixels)
|
|||||||
*dst++ = color >> 16 & 0xff; /* b */
|
*dst++ = color >> 16 & 0xff; /* b */
|
||||||
*dst++ = color >> 8 & 0xff; /* g */
|
*dst++ = color >> 8 & 0xff; /* g */
|
||||||
*dst++ = color >> 0 & 0xff; /* r */
|
*dst++ = color >> 0 & 0xff; /* r */
|
||||||
dst++; /* a */
|
*dst++ = 255; /* a */
|
||||||
}
|
}
|
||||||
/* fill right padding with bgcolor */
|
/* fill right padding with bgcolor */
|
||||||
for (; x < st->image.width; ++x) {
|
for (; x < st->image.width; ++x) {
|
||||||
|
Loading…
Reference in New Issue
Block a user