fix bug when rendering not getting updates!

:)



SVN revision: 47365
This commit is contained in:
Carsten Haitzler 2010-03-22 07:40:10 +00:00
parent 264c2d5b1d
commit 17764a850d
1 changed files with 3 additions and 1 deletions

View File

@ -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);