summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-07-25 16:45:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-07-26 10:25:14 +0900
commitb2b980a7372daaa63f42b53a0311b4449abd7089 (patch)
tree17ce7ac780d8eaace49337d6d5648b747951d4e8
parentda6b03540fbe3e4579084e1e08a93b1612d16f7e (diff)
evas: Fix inefficient updates with no_render
is_visible returns 0 if no_render is true, so should was_visible as well. Yeah, there will be problems if no_render changes on the fly. Don't do that. Fixes T4193
-rw-r--r--src/lib/evas/include/evas_inline.x2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/include/evas_inline.x b/src/lib/evas/include/evas_inline.x
index 510077c..5778d85 100644
--- a/src/lib/evas/include/evas_inline.x
+++ b/src/lib/evas/include/evas_inline.x
@@ -25,7 +25,7 @@ _evas_object_event_new(void)
25static inline int 25static inline int
26evas_object_was_visible(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj) 26evas_object_was_visible(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
27{ 27{
28 if ((obj->prev->visible) && 28 if ((obj->prev->visible) && (!obj->no_render) &&
29 ((obj->prev->cache.clip.visible) || obj->is_smart) && 29 ((obj->prev->cache.clip.visible) || obj->is_smart) &&
30 ((obj->prev->cache.clip.a > 0 && obj->prev->render_op == EVAS_RENDER_BLEND) 30 ((obj->prev->cache.clip.a > 0 && obj->prev->render_op == EVAS_RENDER_BLEND)
31 || obj->prev->render_op != EVAS_RENDER_BLEND)) 31 || obj->prev->render_op != EVAS_RENDER_BLEND))