mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
Rename frame_config.update to frame_config.set
This commit is contained in:
1 parent
6c83516afa
commit
71528b33dd
9 files changed
+51
-48
No files matched your search
@@ -214,7 +214,7 @@ pub func decoder.decode_frame_config?(dst: nptr base.frame_config, src: base.io_
|
||||
}
|
||||
|
||||
if args.dst <> nullptr {
|
||||
args.dst.update!(bounds: this.util.make_rect_ie_u32(
|
||||
args.dst.set!(bounds: this.util.make_rect_ie_u32(
|
||||
min_incl_x: 0,
|
||||
min_incl_y: 0,
|
||||
max_excl_x: this.width,
|
||||
|
||||
@@ -339,7 +339,7 @@ pub func config_decoder.decode_frame_config?(dst: nptr base.frame_config, src: b
|
||||
if args.dst <> nullptr {
|
||||
// The "foo.min(a:this.width_or_height)" calls clip the nominal
|
||||
// frame_rect to the image_rect.
|
||||
args.dst.update!(bounds: this.util.make_rect_ie_u32(
|
||||
args.dst.set!(bounds: this.util.make_rect_ie_u32(
|
||||
min_incl_x: this.frame_rect_x0.min(a: this.width),
|
||||
min_incl_y: this.frame_rect_y0.min(a: this.height),
|
||||
max_excl_x: this.frame_rect_x1.min(a: this.width),
|
||||
|
||||
@@ -398,7 +398,7 @@ pub func decoder.decode_frame_config?(dst: nptr base.frame_config, src: base.io_
|
||||
if args.dst <> nullptr {
|
||||
// The "foo.min(a:this.width_or_height)" calls clip the nominal
|
||||
// frame_rect to the image_rect.
|
||||
args.dst.update!(bounds: this.util.make_rect_ie_u32(
|
||||
args.dst.set!(bounds: this.util.make_rect_ie_u32(
|
||||
min_incl_x: this.frame_rect_x0.min(a: this.width),
|
||||
min_incl_y: this.frame_rect_y0.min(a: this.height),
|
||||
max_excl_x: this.frame_rect_x1.min(a: this.width),
|
||||
|
||||
@@ -111,7 +111,7 @@ pub func decoder.decode_frame_config?(dst: nptr base.frame_config, src: base.io_
|
||||
}
|
||||
|
||||
if args.dst <> nullptr {
|
||||
args.dst.update!(bounds: this.util.make_rect_ie_u32(
|
||||
args.dst.set!(bounds: this.util.make_rect_ie_u32(
|
||||
min_incl_x: 0,
|
||||
min_incl_y: 0,
|
||||
max_excl_x: this.width,
|
||||
|
||||
Reference in new issue
Block a user