forked from enlightenment/efl
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:
parent
e1ff000704
commit
5faf536f51
|
@ -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 */
|
return o->prev->opaque; /* FIXME: Should go poke at the object */
|
||||||
if (o->prev->has_alpha)
|
if (o->prev->has_alpha)
|
||||||
return o->prev->opaque;
|
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)
|
EINA_COW_WRITE_BEGIN(evas_object_image_state_cow, o->prev, Evas_Object_Image_State, state_write)
|
||||||
{
|
{
|
||||||
|
|
|
@ -376,7 +376,7 @@ evas_object_rectangle_was_opaque(Evas_Object *eo_obj EINA_UNUSED,
|
||||||
return 1;
|
return 1;
|
||||||
if (obj->prev->render_op != EVAS_RENDER_BLEND)
|
if (obj->prev->render_op != EVAS_RENDER_BLEND)
|
||||||
return 0;
|
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)
|
static unsigned int evas_object_rectangle_id_get(Evas_Object *eo_obj)
|
||||||
|
|
Loading…
Reference in New Issue