diff options
Diffstat (limited to 'generic/Group.c')
-rw-r--r-- | generic/Group.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/Group.c b/generic/Group.c index 67b30fa..85e6fd4 100644 --- a/generic/Group.c +++ b/generic/Group.c @@ -854,7 +854,9 @@ Render(Item item) WidgetInfo *wi = item->wi; Item current_item; ZnBBox bbox, old_damaged_area, *clip_box; +#ifdef LIBART RenderBuf buf; +#endif PushTransform(item); PushClip(group, True); @@ -863,6 +865,7 @@ Render(Item item) old_damaged_area = wi->damaged_area; IntersectBBox(&wi->damaged_area, clip_box, &bbox); wi->damaged_area = bbox; +#ifdef LIBART buf = wi->buf; wi->buf.ox = (int) wi->damaged_area.orig.x; wi->buf.oy = (int) wi->damaged_area.orig.y; @@ -870,6 +873,7 @@ Render(Item item) 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 } current_item = group->tail; @@ -891,7 +895,9 @@ Render(Item item) if (group->clip != ZN_NO_ITEM) { wi->damaged_area = old_damaged_area; +#ifdef LIBART wi->buf = buf; +#endif } PopClip(group, True); PopTransform(item); |