aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/Triangles.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/Triangles.c b/generic/Triangles.c
index d8596b4..ea9493f 100644
--- a/generic/Triangles.c
+++ b/generic/Triangles.c
@@ -155,7 +155,7 @@ Init(Item item,
tr->colors = ZnListNew(1, sizeof(ZnGradient *));
ZnListAssertSize(tr->colors, 1);
grads = ZnListArray(tr->colors);
- *grads = ZnGetGradientByValue(wi->fore_gradient);
+ *grads = ZnGetGradientByValue(wi->fore_color);
return ZN_OK;
}
@@ -472,6 +472,7 @@ Draw(Item item)
static void
Render(Item item)
{
+#ifdef GLX
WidgetInfo *wi = item->wi;
TrianglesItem tr = (TrianglesItem) item;
int i, num_points, last_color_index;
@@ -507,6 +508,7 @@ Render(Item item)
glVertex2f(points->x, points->y);
}
glEnd();
+#endif
}