aboutsummaryrefslogtreecommitdiff
path: root/generic/Group.c
diff options
context:
space:
mode:
authorlecoanet2001-11-29 10:27:38 +0000
committerlecoanet2001-11-29 10:27:38 +0000
commit296ce5b1882c75a3d17686425e8d288ab3110a0d (patch)
treeff874bc46c4931ced49ba427145afb19501e8251 /generic/Group.c
parentbb161f6e263cdedb5cb298e03160c23e0b21d38d (diff)
downloadtkzinc-296ce5b1882c75a3d17686425e8d288ab3110a0d.zip
tkzinc-296ce5b1882c75a3d17686425e8d288ab3110a0d.tar.gz
tkzinc-296ce5b1882c75a3d17686425e8d288ab3110a0d.tar.bz2
tkzinc-296ce5b1882c75a3d17686425e8d288ab3110a0d.tar.xz
Integration du dessin s�lectif d'objets en GL comme
pour le renderer X.
Diffstat (limited to 'generic/Group.c')
-rw-r--r--generic/Group.c11
1 files 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, &current_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;
}