aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlecoanet2001-10-12 07:37:14 +0000
committerlecoanet2001-10-12 07:37:14 +0000
commitea339b1a3339148ba5ccc89a5d7a0b0625392458 (patch)
tree0fe5ba7be1e1286b27390b20fb45ab9c333d0937
parentd5e1afa15db2a83ae256aa32e5e9a5a42ca974f5 (diff)
downloadtkzinc-ea339b1a3339148ba5ccc89a5d7a0b0625392458.zip
tkzinc-ea339b1a3339148ba5ccc89a5d7a0b0625392458.tar.gz
tkzinc-ea339b1a3339148ba5ccc89a5d7a0b0625392458.tar.bz2
tkzinc-ea339b1a3339148ba5ccc89a5d7a0b0625392458.tar.xz
Suppression du code LIBART.
-rw-r--r--generic/Group.c23
1 files changed, 4 insertions, 19 deletions
diff --git a/generic/Group.c b/generic/Group.c
index 8542eb9..84e0692 100644
--- a/generic/Group.c
+++ b/generic/Group.c
@@ -855,35 +855,23 @@ static void
Render(Item item)
{
GroupItem group = (GroupItem) item;
- WidgetInfo *wi = item->wi;
Item current_item;
- ZnBBox *clip_box;
#ifndef GLX
+ WidgetInfo *wi = item->wi;
+ ZnBBox *clip_box;
ZnBBox bbox, old_damaged_area;
#endif
-#ifdef LIBART
- RenderBuf buf;
-#endif
PushTransform(item);
PushClip(group, True);
+#ifndef GLX
if (group->clip != ZN_NO_ITEM) {
ITEM_P.CurrentClip(wi, NULL, &clip_box, NULL);
-#ifndef GLX
old_damaged_area = wi->damaged_area;
IntersectBBox(&wi->damaged_area, clip_box, &bbox);
wi->damaged_area = bbox;
-#endif
-#ifdef LIBART
- buf = wi->buf;
- wi->buf.ox = (int) wi->damaged_area.orig.x;
- wi->buf.oy = (int) wi->damaged_area.orig.y;
- wi->buf.cx = (int) wi->damaged_area.corner.x;
- wi->buf.cy = (int) wi->damaged_area.corner.y;
- wi->buf.buf += ((wi->buf.oy - buf.oy) * buf.rowstride +
- (wi->buf.ox - buf.ox) * 3);
-#endif
}
+#endif
current_item = group->tail;
while (current_item != ZN_NO_ITEM) {
@@ -909,9 +897,6 @@ Render(Item item)
#ifndef GLX
if (group->clip != ZN_NO_ITEM) {
wi->damaged_area = old_damaged_area;
-#ifdef LIBART
- wi->buf = buf;
-#endif
}
#endif