mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
Merge pull request #41 from dosisod/fix-sixel-alpha
Fix white background bleeding through sixel images:
This commit is contained in:
commit
f78822a367
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 >> 8 & 0xff; /* g */
|
||||
*dst++ = color >> 0 & 0xff; /* r */
|
||||
dst++; /* a */
|
||||
*dst++ = 255; /* a */
|
||||
}
|
||||
/* fill right padding with bgcolor */
|
||||
for (; x < st->image.width; ++x) {
|
||||
|
Loading…
Reference in New Issue
Block a user