Skip to content

Commit

Permalink
avm2: Remove default width and height values from BitmapData ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Nov 3, 2023
1 parent b0d8864 commit 2059492
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/avm2/globals/flash/display/BitmapData.as
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ package flash.display {

[Ruffle(InstanceAllocator)]
public class BitmapData implements IBitmapDrawable {
// FIXME - the first two arguments should not be defaulted, but it's currently
// nedded for BitmapData to be contructed internally
public function BitmapData(width:int=0, height:int=0, transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF) {
public function BitmapData(width:int, height:int, transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF) {
this.init(width, height, transparent, fillColor);
}

Expand Down

0 comments on commit 2059492

Please sign in to comment.