Have wuffs_base__pixel_config__set take repr args

This commit is contained in:
Nigel Tao committed 2020-01-05 15:34:05 +11:00
1 parent b666ab06f7
commit 9e802a5f84
5 files changed
+37 -41

No files matched your search

+2 -4
View File
@@ -328,10 +328,8 @@ const char* play() {
// Override the source's indexed pixel format to be non-indexed.
wuffs_base__pixel_config__set(
&ic.pixcfg,
wuffs_base__make_pixel_format(WUFFS_BASE__PIXEL_FORMAT__BGRA_PREMUL),
wuffs_base__make_pixel_subsampling(WUFFS_BASE__PIXEL_SUBSAMPLING__NONE),
width, height);
&ic.pixcfg, WUFFS_BASE__PIXEL_FORMAT__BGRA_PREMUL,
WUFFS_BASE__PIXEL_SUBSAMPLING__NONE, width, height);
const char* msg = allocate(&dec, &ic);
if (msg) {