avm2: Stub Graphics.beginBitmapFill

This is needed by Pixel Legions
This commit is contained in:
Aaron Hill 2022-09-27 14:15:04 -05:00
parent ed9e9c2a83
commit 046ed2c0ba
1 changed files with 11 additions and 0 deletions

View File

@ -80,6 +80,16 @@ fn begin_fill<'gc>(
Ok(Value::Undefined)
}
/// Implements `Graphics.beginBitmapFill`.
fn begin_bitmap_fill<'gc>(
_activation: &mut Activation<'_, 'gc, '_>,
_this: Option<Object<'gc>>,
_args: &[Value<'gc>],
) -> Result<Value<'gc>, Error<'gc>> {
log::warn!("Graphics.beginBitmapFill: not yet implemented");
Ok(Value::Undefined)
}
/// Implements `Graphics.clear`
fn clear<'gc>(
activation: &mut Activation<'_, 'gc, '_>,
@ -788,6 +798,7 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>
const PUBLIC_INSTANCE_METHODS: &[(&str, NativeMethodImpl)] = &[
("beginFill", begin_fill),
("beginBitmapFill", begin_bitmap_fill),
("clear", clear),
("curveTo", curve_to),
("endFill", end_fill),