avm2: Stub DisplayObject.scale9Grid

This commit is contained in:
Lord-McSweeney 2023-03-04 17:43:20 -08:00 committed by Bale
parent 830d5198f2
commit b919889174
2 changed files with 12 additions and 1 deletions

View File

@ -9,6 +9,9 @@ package flash.display {
import flash.geom.Point; import flash.geom.Point;
import flash.events.EventDispatcher; import flash.events.EventDispatcher;
import __ruffle__.stub_getter;
import __ruffle__.stub_setter;
[Ruffle(InstanceAllocator)] [Ruffle(InstanceAllocator)]
[Ruffle(NativeInstanceInit)] [Ruffle(NativeInstanceInit)]
public class DisplayObject extends EventDispatcher implements IBitmapDrawable { public class DisplayObject extends EventDispatcher implements IBitmapDrawable {
@ -59,6 +62,14 @@ package flash.display {
public native function get scaleZ():Number; public native function get scaleZ():Number;
public native function set scaleZ(value:Number):void; public native function set scaleZ(value:Number):void;
public function get scale9Grid():Rectangle {
stub_getter("flash.display.DisplayObject", "scale9Grid");
return null;
}
public function set scale9Grid(value:Rectangle):void {
stub_setter("flash.display.DisplayObject", "scale9Grid");
}
public native function get name():String; public native function get name():String;
public native function set name(value:String):void; public native function set name(value:String):void;

View File

@ -69,7 +69,7 @@ package flash.display {
throw new IllegalOperationError("Error #2071: The Stage class does not implement this property or method.", 2071); throw new IllegalOperationError("Error #2071: The Stage class does not implement this property or method.", 2071);
} }
public function set scale9Grid(value:Rectangle):void { override public function set scale9Grid(value:Rectangle):void {
throw new IllegalOperationError("Error #2071: The Stage class does not implement this property or method.", 2071); throw new IllegalOperationError("Error #2071: The Stage class does not implement this property or method.", 2071);
} }