Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_engine_dfb.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/directfb/evas_engine_dfb.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evas_engine_dfb.c   10 Feb 2007 17:23:06 -0000      1.9
+++ evas_engine_dfb.c   4 Apr 2007 09:55:40 -0000       1.10
@@ -596,10 +596,11 @@
 evas_engine_directfb_draw_rectangle(void *data, void *context, void *surface,
                                    int x, int y, int w, int h)
 {
+   int                 i;
    int                 c, cx, cy, cw, ch;
-   Cutout_Rect        *rects, *r;
+   Cutout_Rects       *rects;
+   Cutout_Rect        *r;
    RGBA_Draw_Context  *dc = (RGBA_Draw_Context *) context;
-   Evas_Object_List   *l;
    Render_Engine      *re = (Render_Engine *) data;
 
    /* handle cutouts here! */
@@ -629,13 +630,13 @@
        return;
      }
    rects = evas_common_draw_context_apply_cutouts(dc);
-   for (l = (Evas_Object_List *) rects; l; l = l->next)
+   for (i = 0; i < rects->active; ++i)
      {
-       r = (Cutout_Rect *) l;
+       r = rects->rects + i;
        evas_common_draw_context_set_clip(dc, r->x, r->y, r->w, r->h);
        rectangle_draw_internal(data, dc, x, y, w, h);
      }
-   evas_common_draw_context_apply_free_cutouts(rects);
+   evas_common_draw_context_clear_cutouts(rects);
    /* restore clip info */
    dc->clip.use = c;
    dc->clip.x = cx;



-------------------------------------------------------------------------
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