set shaped client image alpha after setting image data
avoid triggering render sync with old image data fix T5957
This commit is contained in:
parent
b492e87851
commit
e5dd1f12f3
|
@ -3862,14 +3862,11 @@ e_comp_object_shape_apply(Evas_Object *obj)
|
||||||
|
|
||||||
//INF("SHAPE RENDER %p", cw->ec);
|
//INF("SHAPE RENDER %p", cw->ec);
|
||||||
|
|
||||||
_e_comp_object_alpha_set(cw);
|
|
||||||
EINA_LIST_FOREACH(cw->obj_mirror, l, o)
|
|
||||||
evas_object_image_alpha_set(o, 1);
|
|
||||||
|
|
||||||
p = pix = evas_object_image_data_get(cw->obj, 1);
|
p = pix = evas_object_image_data_get(cw->obj, 1);
|
||||||
if (!pix)
|
if (!pix)
|
||||||
{
|
{
|
||||||
evas_object_image_data_set(cw->obj, pix);
|
evas_object_image_data_set(cw->obj, pix);
|
||||||
|
_e_comp_object_alpha_set(cw);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (cw->ec->shaped)
|
if (cw->ec->shaped)
|
||||||
|
@ -3924,11 +3921,13 @@ e_comp_object_shape_apply(Evas_Object *obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
evas_object_image_data_set(cw->obj, pix);
|
evas_object_image_data_set(cw->obj, pix);
|
||||||
|
_e_comp_object_alpha_set(cw);
|
||||||
evas_object_image_data_update_add(cw->obj, 0, 0, w, h);
|
evas_object_image_data_update_add(cw->obj, 0, 0, w, h);
|
||||||
EINA_LIST_FOREACH(cw->obj_mirror, l, o)
|
EINA_LIST_FOREACH(cw->obj_mirror, l, o)
|
||||||
{
|
{
|
||||||
evas_object_image_data_set(o, pix);
|
evas_object_image_data_set(o, pix);
|
||||||
evas_object_image_data_update_add(o, 0, 0, w, h);
|
evas_object_image_data_update_add(o, 0, 0, w, h);
|
||||||
|
evas_object_image_alpha_set(o, 1);
|
||||||
}
|
}
|
||||||
// don't need to fix alpha chanel as blending
|
// don't need to fix alpha chanel as blending
|
||||||
// should be totally off here regardless of
|
// should be totally off here regardless of
|
||||||
|
|
Loading…
Reference in New Issue