Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/engines/xrender_x11


Modified Files:
        evas_engine_xrender.c 


Log Message:


pager urgent popup patch - good

evas clipouts less allocs patch - definite spedusp for when it's used heavily!

===================================================================
RCS file: 
/cvs/e/e17/libs/evas/src/modules/engines/xrender_x11/evas_engine_xrender.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- evas_engine_xrender.c       5 Nov 2006 12:53:25 -0000       1.28
+++ evas_engine_xrender.c       4 Apr 2007 09:55:40 -0000       1.29
@@ -283,23 +283,23 @@
      }
    else
      {
-       int i;
-       Cutout_Rect *rects, *r;
-       Evas_Object_List *l;
-       
-       rects = evas_common_draw_context_apply_cutouts(dc);
-       for (num = 0, l = (Evas_Object_List *)rects; l; l = l->next) num++;
+        Cutout_Rects    *rects;
+       Cutout_Rect     *r;
+        int i;
+
+        rects = evas_common_draw_context_apply_cutouts(dc);
+        num = rects->active;
        rect = malloc(num * sizeof(XRectangle));
        if (!rect) return;
-       for (i = 0, l = (Evas_Object_List *)rects; l; l = l->next, i++)
+       for (i = 0; i < num; i++)
          {
-            r = (Cutout_Rect *)l;
+            r = rects->rects + i;
             rect[i].x = r->x;
             rect[i].y = r->y;
             rect[i].width = r->w;
             rect[i].height = r->h;
          }
-       evas_common_draw_context_apply_free_cutouts(rects);
+       evas_common_draw_context_apply_clear_cutouts(rects);
      }
    if (!rect) return;
    XRenderSetPictureClipRectangles(rs->xinf->disp, rs->pic, 0, 0, rect, num);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to