avm2: make BitmapData and DisplayObject impl IBitmapDrawable

This commit is contained in:
Ray Redondo 2021-09-11 16:40:37 -05:00 committed by Mike Welsh
parent 7f895473cb
commit 40d53cda59
2 changed files with 4 additions and 0 deletions

View File

@ -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>,

View File

@ -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>,