aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-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