Ecore_Evas (wayland_shm): After some testing, it actually is better to
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 15 May 2012 14:30:57 +0000 (14:30 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 15 May 2012 14:30:57 +0000 (14:30 +0000)
only damage the portions that change (for the case of rendering).

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@71123 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_wayland_shm.c

index 9f43ff5..8006ed5 100644 (file)
@@ -901,15 +901,14 @@ _ecore_evas_wl_render(Ecore_Evas *ee)
 
         if ((updates = evas_render_updates(ee->evas))) 
           {
-             /* Eina_List *l = NULL; */
-             /* Eina_Rectangle *r; */
+             Eina_List *l = NULL;
+             Eina_Rectangle *r;
 
              LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
-             ecore_wl_window_damage(ee->engine.wl.win, 0, 0, ee->w, ee->h);
-             /* EINA_LIST_FOREACH(updates, l, r)  */
-             /*   ecore_wl_window_damage(ee->engine.wl.win,  */
-             /*                          r->x, r->y, r->w, r->h); */
+             EINA_LIST_FOREACH(updates, l, r) 
+               ecore_wl_window_damage(ee->engine.wl.win, 
+                                      r->x, r->y, r->w, r->h);
 
              ecore_wl_flush();