From e045a35437b12d8f56cb644ec41d4eefaded0fce Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Thu, 18 Nov 2021 10:27:57 +0100 Subject: Fix loading of opaque GIFs --- fastiv-io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fastiv-io.c b/fastiv-io.c index fe725a8..82c3229 100644 --- a/fastiv-io.c +++ b/fastiv-io.c @@ -164,7 +164,8 @@ open_wuffs( wuffs_format = WUFFS_BASE__PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE; cairo_format = CAIRO_FORMAT_RGB30; } else if (opaque) { - wuffs_format = WUFFS_BASE__PIXEL_FORMAT__BGRX; + // BGRX doesn't have as wide swizzler support, namely in GIF. + wuffs_format = WUFFS_BASE__PIXEL_FORMAT__BGRA_NONPREMUL; cairo_format = CAIRO_FORMAT_RGB24; } -- cgit v1.2.3-70-g09d2