forked from enlightenment/efl
When a clipper is no more, redraw the portion of the canvas it takes.
SVN revision: 45781
This commit is contained in:
parent
e2fe3d0f59
commit
27eccf0332
|
@ -118,7 +118,16 @@ evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
|
|||
{
|
||||
/* unclip */
|
||||
obj->cur.clipper->clip.clipees = eina_list_remove(obj->cur.clipper->clip.clipees, obj);
|
||||
if (!obj->cur.clipper->clip.clipees) obj->cur.clipper->cur.have_clipees = 0;
|
||||
if (!obj->cur.clipper->clip.clipees)
|
||||
{
|
||||
obj->cur.clipper->cur.have_clipees = 0;
|
||||
if (obj->cur.clipper->cur.visible)
|
||||
evas_damage_rectangle_add(obj->cur.clipper->layer->evas,
|
||||
obj->cur.clipper->cur.geometry.x,
|
||||
obj->cur.clipper->cur.geometry.y,
|
||||
obj->cur.clipper->cur.geometry.w,
|
||||
obj->cur.clipper->cur.geometry.h);
|
||||
}
|
||||
evas_object_change(obj->cur.clipper);
|
||||
evas_object_change(obj);
|
||||
obj->cur.clipper = NULL;
|
||||
|
@ -226,7 +235,15 @@ evas_object_clip_unset(Evas_Object *obj)
|
|||
{
|
||||
obj->cur.clipper->clip.clipees = eina_list_remove(obj->cur.clipper->clip.clipees, obj);
|
||||
if (!obj->cur.clipper->clip.clipees)
|
||||
obj->cur.clipper->cur.have_clipees = 0;
|
||||
{
|
||||
obj->cur.clipper->cur.have_clipees = 0;
|
||||
if (obj->cur.clipper->cur.visible)
|
||||
evas_damage_rectangle_add(obj->cur.clipper->layer->evas,
|
||||
obj->cur.clipper->cur.geometry.x,
|
||||
obj->cur.clipper->cur.geometry.y,
|
||||
obj->cur.clipper->cur.geometry.w,
|
||||
obj->cur.clipper->cur.geometry.h);
|
||||
}
|
||||
evas_object_change(obj->cur.clipper);
|
||||
}
|
||||
obj->cur.clipper = NULL;
|
||||
|
|
Loading…
Reference in New Issue