From 296ce5b1882c75a3d17686425e8d288ab3110a0d Mon Sep 17 00:00:00 2001 From: lecoanet Date: Thu, 29 Nov 2001 10:27:38 +0000 Subject: Integration du dessin s�lectif d'objets en GL comme pour le renderer X. --- generic/Group.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/generic/Group.c b/generic/Group.c index 8a32d30..3a1c0bf 100644 --- a/generic/Group.c +++ b/generic/Group.c @@ -260,7 +260,6 @@ SetXShape(Item grp) * Get the clip shape. */ tristrip.num_strips = 0; - tristrip.fan = False; simple = clip->class->GetClipVertices(clip, &tristrip); if (simple || (tristrip.num_strips == 0)) { /* @@ -890,7 +889,7 @@ Render(Item item) GroupItem group = (GroupItem) item; Item current_item; WidgetInfo *wi = item->wi; -#if 0 +#ifdef GLX_DAMAGE ZnBBox *clip_box; ZnBBox bbox, old_damaged_area; #endif @@ -900,7 +899,7 @@ Render(Item item) PushTransform(item); PushClip(group, True); -#if 0 +#ifdef GLX_DAMAGE if (group->clip != ZN_NO_ITEM) { ITEM_P.CurrentClip(wi, NULL, &clip_box, NULL); old_damaged_area = wi->damaged_area; @@ -912,7 +911,7 @@ Render(Item item) current_item = group->tail; while (current_item != ZN_NO_ITEM) { if (ISSET(current_item->flags, VISIBLE_BIT)) { -#if 0 +#ifdef GLX_DAMAGE IntersectBBox(&wi->damaged_area, ¤t_item->item_bounding_box, &bbox); if (!IsEmptyBBox(&bbox)) { #endif @@ -923,14 +922,14 @@ Render(Item item) if (current_item->class != ZnGroup) { PopTransform(current_item); } -#if 0 +#ifdef GLX_DAMAGE } #endif } current_item = current_item->previous; } -#if 0 +#ifdef GLX_DAMAGE if (group->clip != ZN_NO_ITEM) { wi->damaged_area = old_damaged_area; } -- cgit v1.1