fix bug when rendering not getting updates!
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 22 Mar 2010 07:40:10 +0000 (07:40 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 22 Mar 2010 07:40:10 +0000 (07:40 +0000)
:)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@47365 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_render.c

index b951fa9..e8b9b87 100644 (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);