aboutsummaryrefslogtreecommitdiff
path: root/generic/Curve.c
diff options
context:
space:
mode:
authorlecoanet2001-01-04 10:48:21 +0000
committerlecoanet2001-01-04 10:48:21 +0000
commit4650e4ce6c3ff004249db6e684c783f74dc4820e (patch)
treeeb556faa71ccc8aa98d0564e257cb22a18266e98 /generic/Curve.c
parente4e6cd076aacae005af8347e3199c75e1cfd42aa (diff)
downloadtkzinc-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/Curve.c')
-rw-r--r--generic/Curve.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/generic/Curve.c b/generic/Curve.c
index ab18ce5..8b43a36 100644
--- a/generic/Curve.c
+++ b/generic/Curve.c
@@ -96,8 +96,10 @@ typedef struct _CurveItemStruct {
ZnImage tile;
ZnPoly dev_shape;
ZnColorGradient gradient;
+#ifdef LIBART
ArtSVP *outline_svp;
ArtSVP *fill_svp;
+#endif
#ifdef GPC
gpc_tristrip tristrip;
#endif
@@ -286,7 +288,9 @@ Init(Item item,
cv->line_color = ZnGetColorByValue(wi->win, wi->fore_color);
cv->marker_color = ZnGetColorByValue(wi->win, wi->fore_color);
cv->grad_geom = NULL;
+#ifdef LIBART
cv->outline_svp = cv->fill_svp = NULL;
+#endif
return ZN_OK;
}
@@ -365,7 +369,9 @@ Clone(Item item)
if (cv->grad_geom) {
cv->grad_geom = GradientGeomDuplicate(cv->grad_geom);
}
+#ifdef LIBART
cv->outline_svp = cv->fill_svp = NULL;
+#endif
}
@@ -421,12 +427,14 @@ Destroy(Item item)
gpc_free_tristrip(&cv->tristrip);
}
#endif
+#ifdef LIBART
if (cv->outline_svp) {
art_svp_free(cv->outline_svp);
}
if (cv->fill_svp) {
art_svp_free(cv->fill_svp);
}
+#endif
}
@@ -717,7 +725,8 @@ ComputeCoordinates(Item item,
* PLC Rendering works only with one contour, no relief, no markers,
* round ends, round joins.
*/
- if (wi->local_render) {
+ if (wi->render) {
+#ifdef LIBART
ArtVpath *vpath;
c1 = cv->dev_shape.contours;
@@ -754,6 +763,7 @@ ComputeCoordinates(Item item,
lw, 2, 1);
}
ZnFree(vpath);
+#endif
}
if (ISSET(cv->flags, RELIEF_OK)) {
@@ -1241,6 +1251,7 @@ Draw(Item item)
static void
Render(Item item)
{
+#ifdef LIBART
WidgetInfo *wi = item->wi;
CurveItem cv = (CurveItem) item;
XColor *color = ZnColorGradientMidColor(wi->win, cv->fill_color);
@@ -1260,6 +1271,7 @@ Render(Item item)
cv->line_color->green, cv->line_color->blue,
cv->line_alpha & 0xff, 0, 0, NULL);
}
+#endif
}