mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Have examples use overwrite_instead_of_blend
This commit is contained in:
1 parent
f602237490
commit
621ea5adf3
2 files changed
+31
-4
No files matched your search
@@ -423,7 +423,11 @@ play() {
|
||||
}
|
||||
|
||||
wuffs_base__status decode_frame_status = wuffs_gif__decoder__decode_frame(
|
||||
&dec, &g_pb, &src, WUFFS_BASE__PIXEL_BLEND__SRC_OVER, g_workbuf, NULL);
|
||||
&dec, &g_pb, &src,
|
||||
wuffs_base__frame_config__overwrite_instead_of_blend(&fc)
|
||||
? WUFFS_BASE__PIXEL_BLEND__SRC
|
||||
: WUFFS_BASE__PIXEL_BLEND__SRC_OVER,
|
||||
g_workbuf, NULL);
|
||||
if (decode_frame_status.repr == wuffs_base__note__end_of_data) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user