Change stubs to use new macro method

This commit is contained in:
Lord-McSweeney 2023-02-01 16:09:02 -08:00 committed by Nathan Adams
parent a6ea1ef4a7
commit 83087f9f23
1 changed files with 6 additions and 4 deletions

View File

@ -1077,21 +1077,23 @@ fn set_cache_as_bitmap<'gc>(
Ok(Value::Undefined)
}
/// Stubs `opaqueBackground`'s getter.
/// `opaqueBackground`'s getter.
pub fn opaque_background<'gc>(
_activation: &mut Activation<'_, 'gc>,
activation: &mut Activation<'_, 'gc>,
_this: Option<Object<'gc>>,
_args: &[Value<'gc>],
) -> Result<Value<'gc>, Error<'gc>> {
avm2_stub_getter!(activation, "flash.display.DisplayObject", "opaqueBackground");
Ok(Value::Null)
}
/// Stubs `opaqueBackground`'s setter.
/// `opaqueBackground`'s setter.
pub fn set_opaque_background<'gc>(
_activation: &mut Activation<'_, 'gc>,
activation: &mut Activation<'_, 'gc>,
_this: Option<Object<'gc>>,
_args: &[Value<'gc>],
) -> Result<Value<'gc>, Error<'gc>> {
avm2_stub_setter!(activation, "flash.display.DisplayObject", "opaqueBackground");
Ok(Value::Undefined)
}