From 63854046c0a02fcb20eafd1c6701b92bfb8c8ce3 Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 22 Mar 2010 07:40:10 +0000 Subject: [PATCH] fix bug when rendering not getting updates! :) git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@47365 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_render.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/canvas/evas_render.c b/src/lib/canvas/evas_render.c index b951fa9..e8b9b87 100644 --- a/src/lib/canvas/evas_render.c +++ b/src/lib/canvas/evas_render.c @@ -791,6 +791,7 @@ evas_render_updates_internal(Evas *e, int ux, uy, uw, uh; int cx, cy, cw, ch; unsigned int i, j; + int haveup = 0; MAGIC_CHECK(e, Evas, MAGIC_EVAS); return NULL; @@ -897,6 +898,7 @@ evas_render_updates_internal(Evas *e, if (rect) updates = eina_list_append(updates, rect); } + haveup = 1; off_x = cx - ux; off_y = cy - uy; /* build obscuring objects list (in order from bottom to top) */ @@ -1071,7 +1073,7 @@ evas_render_updates_internal(Evas *e, RD(" ---]\n"); } /* flush redraws */ - if (updates) + if (haveup) { evas_event_callback_call(e, EVAS_CALLBACK_RENDER_FLUSH_PRE, NULL); e->engine.func->output_flush(e->engine.data.output); -- 2.7.4