Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/xrender_xcb
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_xcb/evas_engine_xrender.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- evas_engine_xrender.c 10 Oct 2006 19:15:48 -0000 1.8
+++ evas_engine_xrender.c 4 Apr 2007 09:55:40 -0000 1.9
@@ -413,23 +413,23 @@
}
else
{
- int i;
- Cutout_Rect *rects, *r;
- Evas_Object_List *l;
+ Cutout_Rect *rects;
+ Cutout_Rect *r;
+ int i;
rects = evas_common_draw_context_apply_cutouts(dc);
- for (num = 0, l = (Evas_Object_List *)rects; l; l = l->next) num++;
+ num = rects->active;
rect = malloc(num * sizeof(xcb_rectangle_t));
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;
xcb_render_set_picture_clip_rectangles(rs->xcbinf->conn, rs->pic, 0, 0,
num, rect);
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs