aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_clip.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-09-22 04:37:51 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-09-22 04:37:51 +0000
commit5e8d46e884930f109a28147cda4ce002e6836017 (patch)
tree9d202e5a5c5c332f74ded383248a2ae2e4dd4446 /legacy/evas/src/lib/canvas/evas_clip.c
parentSome cleanup, grouped functions, about to transfer more info into the header ... (diff)
downloadefl-5e8d46e884930f109a28147cda4ce002e6836017.tar.gz
clip bug fix :)
SVN revision: 11694
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_clip.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_clip.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_clip.c b/legacy/evas/src/lib/canvas/evas_clip.c
index b60f329f83..35510649a8 100644
--- a/legacy/evas/src/lib/canvas/evas_clip.c
+++ b/legacy/evas/src/lib/canvas/evas_clip.c
@@ -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);