Rename frame_config.update to frame_config.set

This commit is contained in:
Nigel Tao committed 2020-06-03 11:34:57 +10:00
1 parent 6c83516afa
commit 71528b33dd
9 files changed
+51 -48

No files matched your search

+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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),
+1 -1
View File
@@ -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),
+1 -1
View File
@@ -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,