Skip to content

Commit

Permalink
[AVM1] add setters for width/height in Stage
Browse files Browse the repository at this point in the history
  • Loading branch information
dbluelle committed May 7, 2022
1 parent 89b0dba commit b652cdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripting/avm1/avm1display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ void AVM1Stage::sinit(Class_base* c)
// in AVM1 Stage is no DisplayObject and all methods/properties are static
CLASS_SETUP_NO_CONSTRUCTOR(c, ASObject, CLASS_SEALED);
c->setDeclaredMethodByQName("width","",Class<IFunction>::getFunction(c->getSystemState(),_getStageWidth),GETTER_METHOD,false);
c->setDeclaredMethodByQName("width","",Class<IFunction>::getFunction(c->getSystemState(),_setStageWidth),SETTER_METHOD,false);
c->setDeclaredMethodByQName("height","",Class<IFunction>::getFunction(c->getSystemState(),_getStageHeight),GETTER_METHOD,false);
c->setDeclaredMethodByQName("height","",Class<IFunction>::getFunction(c->getSystemState(),_setStageHeight),SETTER_METHOD,false);
c->setDeclaredMethodByQName("displayState","",Class<IFunction>::getFunction(c->getSystemState(),_getDisplayState),GETTER_METHOD,false);
c->setDeclaredMethodByQName("displayState","",Class<IFunction>::getFunction(c->getSystemState(),_setDisplayState),SETTER_METHOD,false);
c->setDeclaredMethodByQName("scaleMode","",Class<IFunction>::getFunction(c->getSystemState(),_getScaleMode),GETTER_METHOD,false);
Expand Down

0 comments on commit b652cdc

Please sign in to comment.