forked from enlightenment/efl
evas_inline: Clean up evas_object_plane_changed function
Summary: This file is full of functions called as: foo(eo_obj, obj); Most of them can be reduced to foo(obj); and internally get the eo_obj with obj->object This would make it impossible to screw up calling them passing an unrelated pair, and make calling code a little more readable. ref T7230 Depends on D9050 Reviewers: raster, cedric, zmike Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7230 Differential Revision: https://phab.enlightenment.org/D9051
This commit is contained in:
parent
8c5d5ada65
commit
343698f7ec
|
@ -3133,7 +3133,7 @@ _evas_planes(Evas_Public_Data *evas)
|
|||
_evas_object_image_plane_release(eo_obj2, obj2, output);
|
||||
} else break;
|
||||
}
|
||||
if (evas_object_plane_changed(eo_obj2, obj2))
|
||||
if (evas_object_plane_changed(obj2))
|
||||
{
|
||||
/* Since we're lifting this object out of the scene graph
|
||||
* (or putting it back), we need to force redraw of the space
|
||||
|
|
|
@ -126,10 +126,10 @@ evas_object_is_on_plane(Evas_Object_Protected_Data *obj)
|
|||
}
|
||||
|
||||
static inline int
|
||||
evas_object_plane_changed(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
|
||||
evas_object_plane_changed(Evas_Object_Protected_Data *obj)
|
||||
{
|
||||
if (obj->func->plane_changed)
|
||||
return obj->func->plane_changed(eo_obj, obj, obj->private_data);
|
||||
return obj->func->plane_changed(obj->object, obj, obj->private_data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue