avm2: Rename `StageObject::graphics_of` to just `graphics`
This commit is contained in:
parent
b2c1299f79
commit
e9b9d64cb6
|
@ -62,7 +62,7 @@ pub fn graphics<'gc>(
|
|||
activation,
|
||||
)? {
|
||||
Value::Undefined | Value::Null => {
|
||||
let graphics = Value::from(StageObject::graphics_of(activation, dobj)?);
|
||||
let graphics = Value::from(StageObject::graphics(activation, dobj)?);
|
||||
this.set_property(
|
||||
this,
|
||||
&QName::new(Namespace::private(NS_RUFFLE_INTERNAL), "graphics"),
|
||||
|
|
|
@ -48,7 +48,7 @@ pub fn graphics<'gc>(
|
|||
activation,
|
||||
)? {
|
||||
Value::Undefined | Value::Null => {
|
||||
let graphics = Value::from(StageObject::graphics_of(activation, dobj)?);
|
||||
let graphics = Value::from(StageObject::graphics(activation, dobj)?);
|
||||
this.set_property(
|
||||
this,
|
||||
&QName::new(Namespace::private(NS_RUFFLE_INTERNAL), "graphics"),
|
||||
|
|
|
@ -102,7 +102,7 @@ impl<'gc> StageObject<'gc> {
|
|||
}
|
||||
|
||||
/// Create a `graphics` object for a given display object.
|
||||
pub fn graphics_of(
|
||||
pub fn graphics(
|
||||
activation: &mut Activation<'_, 'gc, '_>,
|
||||
display_object: DisplayObject<'gc>,
|
||||
) -> Result<Self, Error> {
|
||||
|
|
Loading…
Reference in New Issue