clip bug fix :)

SVN revision: 11694
This commit is contained in:
Carsten Haitzler 2004-09-22 04:37:51 +00:00
parent 29474a9d15
commit 5e8d46e884
1 changed files with 11 additions and 0 deletions

View File

@ -166,6 +166,17 @@ evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
obj->cur.clipper = NULL;
}
/* clip me */
if (clip->clip.clipees == NULL && clip->cur.visible)
{
/* Basically it just went invisible */
clip->changed = 1;
clip->layer->evas->changed = 1;
evas_damage_rectangle_add(clip->layer->evas,
clip->cur.geometry.x, clip->cur.geometry.y,
clip->cur.geometry.w, clip->cur.geometry.h);
}
obj->cur.clipper = clip;
clip->clip.clipees = evas_list_append(clip->clip.clipees, obj);
evas_object_change(obj);