evas: Also fix was_opaque for rect & image

I believe the function is not used, so it doesn't really
matter.
This commit is contained in:
Jean-Philippe Andre 2016-07-18 13:53:33 +09:00
parent e1ff000704
commit 5faf536f51
2 changed files with 3 additions and 1 deletions

View File

@ -2601,6 +2601,8 @@ evas_object_image_was_opaque(Evas_Object *eo_obj EINA_UNUSED,
return o->prev->opaque; /* FIXME: Should go poke at the object */
if (o->prev->has_alpha)
return o->prev->opaque;
if (o->has_filter)
return o->cur->opaque;
EINA_COW_WRITE_BEGIN(evas_object_image_state_cow, o->prev, Evas_Object_Image_State, state_write)
{

View File

@ -376,7 +376,7 @@ evas_object_rectangle_was_opaque(Evas_Object *eo_obj EINA_UNUSED,
return 1;
if (obj->prev->render_op != EVAS_RENDER_BLEND)
return 0;
return 1;
return (obj->prev->cache.clip.a == 255) ? 1 : 0;
}
static unsigned int evas_object_rectangle_id_get(Evas_Object *eo_obj)