diff options
author | lecoanet | 2001-01-04 10:48:21 +0000 |
---|---|---|
committer | lecoanet | 2001-01-04 10:48:21 +0000 |
commit | 4650e4ce6c3ff004249db6e684c783f74dc4820e (patch) | |
tree | eb556faa71ccc8aa98d0564e257cb22a18266e98 /generic/Group.c | |
parent | e4e6cd076aacae005af8347e3199c75e1cfd42aa (diff) | |
download | tkzinc-4650e4ce6c3ff004249db6e684c783f74dc4820e.zip tkzinc-4650e4ce6c3ff004249db6e684c783f74dc4820e.tar.gz tkzinc-4650e4ce6c3ff004249db6e684c783f74dc4820e.tar.bz2 tkzinc-4650e4ce6c3ff004249db6e684c783f74dc4820e.tar.xz |
Ajout de la compilation conditionnelle de libart
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); |