forked from enlightenment/efl
evas canvas: fix a wrong condition check in smart changed.
There were 2 wrong conditions. 1. visible check. Smart changed can be skipped only if previous/current visibility are false. 2. clipper. Actually, it needed to check previous/current clippers but previously, it checked only previous clippers. @fix
This commit is contained in:
parent
9a1f3891d4
commit
51acb259a2
|
@ -1042,9 +1042,9 @@ evas_object_smart_changed_get(Evas_Object *eo_obj)
|
||||||
|
|
||||||
//b. Object clipper visibility
|
//b. Object clipper visibility
|
||||||
if ((obj->prev->clipper && obj->cur->clipper) &&
|
if ((obj->prev->clipper && obj->cur->clipper) &&
|
||||||
(!(obj->prev->clipper->cur->visible && obj->cur->clipper->cur->visible) ||
|
(!obj->prev->clipper->cur->visible && !obj->cur->clipper->cur->visible ||
|
||||||
((obj->prev->clipper->cur->color.a == 0) &&
|
((obj->prev->clipper->cur->color.a == 0) &&
|
||||||
(obj->prev->clipper->prev->color.a == 0))))
|
(obj->cur->clipper->cur->color.a == 0))))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
if (!obj->clip.clipees)
|
if (!obj->clip.clipees)
|
||||||
|
|
Loading…
Reference in New Issue