diff --git a/release/c/wuffs-unsupported-snapshot.c b/release/c/wuffs-unsupported-snapshot.c index 727ae8d4..ef6d49e0 100644 --- a/release/c/wuffs-unsupported-snapshot.c +++ b/release/c/wuffs-unsupported-snapshot.c @@ -40259,10 +40259,10 @@ wuffs_png__decoder__frame_dirty_rect( } return wuffs_base__utility__make_rect_ie_u32( - 0, - 0, - self->private_impl.f_width, - self->private_impl.f_height); + self->private_impl.f_frame_rect_x0, + self->private_impl.f_frame_rect_y0, + self->private_impl.f_frame_rect_x1, + self->private_impl.f_frame_rect_y1); } // -------- func png.decoder.num_animation_loops diff --git a/std/png/decode_png.wuffs b/std/png/decode_png.wuffs index e1f0b044..91f0ecf6 100644 --- a/std/png/decode_png.wuffs +++ b/std/png/decode_png.wuffs @@ -1265,10 +1265,10 @@ pri func decoder.decode_pass?(src: base.io_reader, workbuf: slice base.u8) { pub func decoder.frame_dirty_rect() base.rect_ie_u32 { return this.util.make_rect_ie_u32( - min_incl_x: 0, - min_incl_y: 0, - max_excl_x: this.width, - max_excl_y: this.height) + min_incl_x: this.frame_rect_x0, + min_incl_y: this.frame_rect_y0, + max_excl_x: this.frame_rect_x1, + max_excl_y: this.frame_rect_y1) } pub func decoder.num_animation_loops() base.u32 {