Skip to content

Commit

Permalink
avm2: Add [API("674")] to Rectangle.copyFrom
Browse files Browse the repository at this point in the history
This fixes old classes that extend Rectangle and define `copyFrom`
without marking it as an override
  • Loading branch information
Aaron1011 committed Aug 12, 2024
1 parent fea16a0 commit 4f94cae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/avm2/globals/flash/geom/Rectangle.as
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ package flash.geom {
return "(x=" + this.x + ", y=" + this.y + ", w=" + this.width + ", h=" + this.height + ")";
}

[API("674")]
public function copyFrom(sourceRect: Rectangle): void {
this.x = sourceRect.x;
this.y = sourceRect.y;
Expand Down

0 comments on commit 4f94cae

Please sign in to comment.