evas/gl_x11 - replace inlist counting to one api call.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 19 May 2014 09:47:20 +0000 (18:47 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 19 May 2014 09:48:05 +0000 (18:48 +0900)
src/modules/evas/engines/gl_x11/evas_engine.c

index 0dcbe076b805a274441a2aef82a4cf908e1adb40..37faaa53d7f1a2ec3e96c48e78738eb93e591fc0 100644 (file)
@@ -1612,7 +1612,7 @@ eng_output_flush(void *data, Evas_Render_Mode render_mode)
         Tilebuf_Rect *r;
         
         // if partial swaps can be done use re->rects
-        EINA_INLIST_FOREACH(EINA_INLIST_GET(re->rects), r) num++;
+        num = eina_inlist_count(EINA_INLIST_GET(re->rects));
         if (num > 0)
           {
              rects = alloca(sizeof(EGLint) * 4 * num);