summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-29 15:37:18 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 15:37:36 -0400
commit343698f7eceb7cc3cfdb21da955abd401adc16a8 (patch)
tree1c28e363f6024733d520c6efe73325fa918af6e5 /src
parent8c5d5ada65cb273237156b69d76bc1d07b383a48 (diff)
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
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_render.c2
-rw-r--r--src/lib/evas/include/evas_inline.x4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c
index a0f381b2eb..feaf5b214a 100644
--- a/src/lib/evas/canvas/evas_render.c
+++ b/src/lib/evas/canvas/evas_render.c
@@ -3133,7 +3133,7 @@ _evas_planes(Evas_Public_Data *evas)
3133 _evas_object_image_plane_release(eo_obj2, obj2, output); 3133 _evas_object_image_plane_release(eo_obj2, obj2, output);
3134 } else break; 3134 } else break;
3135 } 3135 }
3136 if (evas_object_plane_changed(eo_obj2, obj2)) 3136 if (evas_object_plane_changed(obj2))
3137 { 3137 {
3138 /* Since we're lifting this object out of the scene graph 3138 /* Since we're lifting this object out of the scene graph
3139 * (or putting it back), we need to force redraw of the space 3139 * (or putting it back), we need to force redraw of the space
diff --git a/src/lib/evas/include/evas_inline.x b/src/lib/evas/include/evas_inline.x
index eeea55fbba..a67616e47c 100644
--- a/src/lib/evas/include/evas_inline.x
+++ b/src/lib/evas/include/evas_inline.x
@@ -126,10 +126,10 @@ evas_object_is_on_plane(Evas_Object_Protected_Data *obj)
126} 126}
127 127
128static inline int 128static inline int
129evas_object_plane_changed(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj) 129evas_object_plane_changed(Evas_Object_Protected_Data *obj)
130{ 130{
131 if (obj->func->plane_changed) 131 if (obj->func->plane_changed)
132 return obj->func->plane_changed(eo_obj, obj, obj->private_data); 132 return obj->func->plane_changed(obj->object, obj, obj->private_data);
133 return 0; 133 return 0;
134} 134}
135 135