Fix loading of opaque GIFs

This commit is contained in:
Přemysl Eric Janouch 2021-11-18 10:27:57 +01:00
parent 61225574d3
commit e045a35437
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -164,7 +164,8 @@ open_wuffs(
wuffs_format = WUFFS_BASE__PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE; wuffs_format = WUFFS_BASE__PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE;
cairo_format = CAIRO_FORMAT_RGB30; cairo_format = CAIRO_FORMAT_RGB30;
} else if (opaque) { } 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; cairo_format = CAIRO_FORMAT_RGB24;
} }