avm2: make BitmapData and DisplayObject impl IBitmapDrawable
This commit is contained in:
parent
7f895473cb
commit
40d53cda59
|
@ -198,6 +198,8 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>
|
||||||
write.set_attributes(ClassAttributes::SEALED);
|
write.set_attributes(ClassAttributes::SEALED);
|
||||||
write.set_instance_allocator(bitmapdata_allocator);
|
write.set_instance_allocator(bitmapdata_allocator);
|
||||||
|
|
||||||
|
write.implements(QName::new(Namespace::package("flash.display"), "IBitmapDrawable").into());
|
||||||
|
|
||||||
const PUBLIC_INSTANCE_PROPERTIES: &[(
|
const PUBLIC_INSTANCE_PROPERTIES: &[(
|
||||||
&str,
|
&str,
|
||||||
Option<NativeMethodImpl>,
|
Option<NativeMethodImpl>,
|
||||||
|
|
|
@ -604,6 +604,8 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>
|
||||||
mc,
|
mc,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
write.implements(QName::new(Namespace::package("flash.display"), "IBitmapDrawable").into());
|
||||||
|
|
||||||
const PUBLIC_INSTANCE_PROPERTIES: &[(
|
const PUBLIC_INSTANCE_PROPERTIES: &[(
|
||||||
&str,
|
&str,
|
||||||
Option<NativeMethodImpl>,
|
Option<NativeMethodImpl>,
|
||||||
|
|
Loading…
Reference in New Issue