aboutsummaryrefslogtreecommitdiff
path: root/fastiv-io.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-18 10:27:57 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-18 10:37:47 +0100
commite045a35437b12d8f56cb644ec41d4eefaded0fce (patch)
tree04da86a6aee9b359d8a2b1fcef86d0bdf474d114 /fastiv-io.c
parent61225574d36ca24e5af8bd610d3f518b4f672e6c (diff)
downloadfiv-e045a35437b12d8f56cb644ec41d4eefaded0fce.tar.gz
fiv-e045a35437b12d8f56cb644ec41d4eefaded0fce.tar.xz
fiv-e045a35437b12d8f56cb644ec41d4eefaded0fce.zip
Fix loading of opaque GIFs
Diffstat (limited to 'fastiv-io.c')
-rw-r--r--fastiv-io.c3
1 files changed, 2 insertions, 1 deletions
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;
}