From b7a284dbe6ed6ea1e856af56594d75e08eb9e656 Mon Sep 17 00:00:00 2001 From: hermet Date: Tue, 15 May 2012 07:30:15 +0000 Subject: [PATCH] evas - removed unnecessary compares git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@71099 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/include/evas_inline.x | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/include/evas_inline.x b/src/lib/include/evas_inline.x index 45f2b1f..da5fcdd 100644 --- a/src/lib/include/evas_inline.x +++ b/src/lib/include/evas_inline.x @@ -12,8 +12,8 @@ evas_object_was_visible(Evas_Object *obj) { if ((obj->prev.visible) && ((obj->prev.cache.clip.visible) || (obj->smart.smart)) && - ((obj->prev.cache.clip.a > 0 && obj->prev.render_op == EVAS_RENDER_BLEND) - || obj->prev.render_op != EVAS_RENDER_BLEND)) + ((obj->prev.cache.clip.a > 0) && (obj->prev.render_op == EVAS_RENDER_BLEND)) + ) { if (obj->func->was_visible) return obj->func->was_visible(obj); @@ -101,8 +101,8 @@ evas_object_is_visible(Evas_Object *obj) { /* post 1.0 -> enable? */ if ((obj->cur.visible)/* && (obj->cur.color.a > 0)*/ && ((obj->cur.cache.clip.visible) || (obj->smart.smart)) && - ((obj->cur.cache.clip.a > 0 && obj->cur.render_op == EVAS_RENDER_BLEND) - || obj->cur.render_op != EVAS_RENDER_BLEND)) + ((obj->cur.cache.clip.a > 0) && (obj->cur.render_op == EVAS_RENDER_BLEND)) + ) { if (obj->func->is_visible) return obj->func->is_visible(obj); -- 2.7.4