From a55041a4133cabc1a0d1761b2abb921f4d014dc9 Mon Sep 17 00:00:00 2001 From: raster Date: Sun, 19 Sep 2010 02:28:09 +0000 Subject: [PATCH] fix clip in simple img obj case git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@52446 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_render.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/canvas/evas_render.c b/src/lib/canvas/evas_render.c index 591b68b..c2a6409 100644 --- a/src/lib/canvas/evas_render.c +++ b/src/lib/canvas/evas_render.c @@ -802,6 +802,8 @@ evas_render_mapped(Evas *e, Evas_Object *obj, void *context, void *surface, (e->engine.data.output, obj->cur.map->surface, 0, 0, obj->cur.map->surface_w, obj->cur.map->surface_h); } + e->engine.func->context_clip_unset(e->engine.data.output, + e->engine.data.context); if ((obj->cur.map->surface) && (obj->smart.smart)) { if (obj->cur.clipper) @@ -1136,9 +1138,13 @@ evas_render_updates_internal(Evas *e, obj->cur.cache.clip.w, obj->cur.cache.clip.h); } - e->engine.func->context_clip_set(e->engine.data.output, - e->engine.data.context, - x, y, w, h); + if (obj->cur.clipper) + e->engine.func->context_clip_set(e->engine.data.output, + e->engine.data.context, + x, y, w, h); + else + e->engine.func->context_clip_unset(e->engine.data.output, + e->engine.data.context); #if 1 /* FIXME: this can slow things down... figure out optimum... coverage */ for (j = offset; j < e->temporary_objects.count; ++j) { -- 2.7.4