Skip to content

Commit

Permalink
mark BitmapData as initialized when constructed through BitmapTag
Browse files Browse the repository at this point in the history
  • Loading branch information
dbluelle committed Sep 17, 2017
1 parent 1f6a694 commit e911ba3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scripting/flash/display/BitmapData.cpp
Expand Up @@ -37,11 +37,17 @@ BitmapData::BitmapData(Class_base* c):ASObject(c,T_OBJECT,SUBTYPE_BITMAPDATA),pi

BitmapData::BitmapData(Class_base* c, _R<BitmapContainer> b):ASObject(c,T_OBJECT,SUBTYPE_BITMAPDATA),pixels(b),locked(0),transparent(true)
{
traitsInitialized = true;
constructIndicator = true;
constructorCallComplete = true;
}

BitmapData::BitmapData(Class_base* c, const BitmapData& other)
: ASObject(c,T_OBJECT,SUBTYPE_BITMAPDATA),pixels(other.pixels),locked(other.locked),transparent(other.transparent)
{
traitsInitialized = other.traitsInitialized;
constructIndicator = other.constructIndicator;
constructorCallComplete = other.constructorCallComplete;
}

BitmapData::BitmapData(Class_base* c, uint32_t width, uint32_t height)
Expand Down

0 comments on commit e911ba3

Please sign in to comment.