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_instance_allocator(bitmapdata_allocator);
|
||||
|
||||
write.implements(QName::new(Namespace::package("flash.display"), "IBitmapDrawable").into());
|
||||
|
||||
const PUBLIC_INSTANCE_PROPERTIES: &[(
|
||||
&str,
|
||||
Option<NativeMethodImpl>,
|
||||
|
|
|
@ -604,6 +604,8 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>
|
|||
mc,
|
||||
));
|
||||
|
||||
write.implements(QName::new(Namespace::package("flash.display"), "IBitmapDrawable").into());
|
||||
|
||||
const PUBLIC_INSTANCE_PROPERTIES: &[(
|
||||
&str,
|
||||
Option<NativeMethodImpl>,
|
||||
|
|
Loading…
Reference in New Issue