diff --git a/patches.def.h b/patches.def.h index ac2704d..72888e2 100644 --- a/patches.def.h +++ b/patches.def.h @@ -29,7 +29,7 @@ */ #define ALPHA_GRADIENT_PATCH 0 -/* This patch allows st to reize to any pixel size rather than snapping to character width/height. +/* This patch allows st to resize to any pixel size rather than snapping to character width/height. * https://st.suckless.org/patches/anysize/ */ #define ANYSIZE_PATCH 1 diff --git a/sixel.c b/sixel.c index 7bfe598..2c382f4 100644 --- a/sixel.c +++ b/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) {