aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_clip.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-06-02 10:00:05 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-06-02 10:00:05 +0000
commit2ffa0f4075ca1b02a7c3704f528b80bc14386834 (patch)
treebd63d8f4d84b98aad35b7ac4b1902007598f62b5 /legacy/evas/src/lib/canvas/evas_clip.c
parentdisable map mesh support - engine code still doesnt handle != 4 points (diff)
downloadefl-2ffa0f4075ca1b02a7c3704f528b80bc14386834.tar.gz
disable masking support. back to clip rects.
SVN revision: 59896
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_clip.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_clip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_clip.c b/legacy/evas/src/lib/canvas/evas_clip.c
index 9416b92183..7337f4fb29 100644
--- a/legacy/evas/src/lib/canvas/evas_clip.c
+++ b/legacy/evas/src/lib/canvas/evas_clip.c
@@ -159,7 +159,7 @@ evas_object_mapped_clip_across_mark(Evas_Object *obj)
}
/* public functions */
-
+extern const char *o_rect_type;
EAPI void
evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
@@ -178,6 +178,8 @@ evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
if (obj->cur.clipper == clip) return;
if (obj == clip) return;
if (evas_object_intercept_call_clip_set(obj, clip)) return;
+ // illegal to set anything but a rect as a clip
+ if (clip->type != o_rect_type) return;
if (obj->smart.smart)
{
if (obj->smart.smart->smart_class->clip_set)