From d136b9ce6996669df4caa5509cf6ff1fba1c7d67 Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 20 Aug 2011 14:43:04 +0000 Subject: [PATCH] and clear out proxy region first. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@62632 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_image.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/lib/canvas/evas_object_image.c b/src/lib/canvas/evas_object_image.c index 08baae6..bef6caa 100644 --- a/src/lib/canvas/evas_object_image.c +++ b/src/lib/canvas/evas_object_image.c @@ -2233,6 +2233,13 @@ _proxy_subrender(Evas *e, Evas_Object *source) } ctx = e->engine.func->context_new(e->engine.data.output); + e->engine.func->context_color_set(e->engine.data.output, ctx, 0, 0, 0, 0); + e->engine.func->context_render_op_set(e->engine.data.output, ctx, EVAS_RENDER_COPY); + e->engine.func->rectangle_draw(e->engine.data.output, ctx, + source->proxy.surface, 0, 0, w, h); + e->engine.func->context_free(e->engine.data.output, ctx); + + ctx = e->engine.func->context_new(e->engine.data.output); evas_render_mapped(e, source, ctx, source->proxy.surface, -source->cur.geometry.x, -source->cur.geometry.y, @@ -2241,12 +2248,6 @@ _proxy_subrender(Evas *e, Evas_Object *source) source->proxy.surface = e->engine.func->image_dirty_region (e->engine.data.output, source->proxy.surface, 0, 0, w, h); /* - e->engine.func->context_color_set(e->engine.data.output, ctx, 0, 0, 0, 0); - e->engine.func->context_render_op_set(e->engine.data.output, ctx, EVAS_RENDER_COPY); - e->engine.func->rectangle_draw(e->engine.data.output, ctx, - source->proxy.surface, 0, 0, w, h); - e->engine.func->context_free(e->engine.data.output, ctx); - ctx = e->engine.func->context_new(e->engine.data.output); if (source->smart.smart) { -- 2.7.4