Merge pull request #41 from dosisod/fix-sixel-alpha
Fix white background bleeding through sixel images:
This commit is contained in:
commit
f78822a367
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue