evas_object_image: fix alpha_set bug.

if image object's first alpha value is false, evas_object_image_alpha_set function did not work.
opaque_valid is always 1 even though has_alpha value changed.
This commit is contained in:
Ji-Youn Park 2016-09-19 17:02:40 +08:30
parent 1d08e8d30a
commit fc0c0a6e0b
1 changed files with 4 additions and 1 deletions

View File

@ -752,7 +752,10 @@ _efl_canvas_image_internal_efl_gfx_buffer_alpha_set(Eo *eo_obj, Evas_Image_Data
return;
EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
state_write->has_alpha = has_alpha;
{
state_write->has_alpha = has_alpha;
state_write->opaque_valid = 0;
}
EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
if (o->engine_data)