aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Arc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/generic/Arc.c b/generic/Arc.c
index 080d57f..47e37f4 100644
--- a/generic/Arc.c
+++ b/generic/Arc.c
@@ -541,14 +541,13 @@ ComputeCoordinates(Item item,
#ifdef GLX
if (!ZnGradientFlat(arc->fill_color)) {
- ZnPoly shape;
+ ZnPoly shape;
+ ZnPoint p[4];
if (!arc->grad_geo) {
arc->grad_geo = ZnMalloc(6*sizeof(ZnPoint));
}
if (arc->fill_color->type == ZN_AXIAL_GRADIENT) {
- ZnPoint p[4];
-
p[0] = arc->coords[0];
p[2] = arc->coords[1];
p[1].x = p[2].x;
@@ -1207,10 +1206,11 @@ Render(Item item)
return;
}
+#ifdef GL_LIST
if (!item->gl_list) {
item->gl_list = glGenLists(1);
glNewList(item->gl_list, GL_COMPILE);
-
+#endif
/* Fill if requested */
if (ISSET(arc->flags, FILLED_BIT)) {
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
@@ -1265,11 +1265,13 @@ Render(Item item)
arc->line_style, CapRound, JoinRound, first, last,
arc->line_color);
}
+#ifdef GL_LIST
glEndList();
}
glCallList(item->gl_list);
#endif
+#endif
}