diff options
author | lecoanet | 2002-03-15 14:16:33 +0000 |
---|---|---|
committer | lecoanet | 2002-03-15 14:16:33 +0000 |
commit | b0c719c0f7270a474d8204e8019eb73de946f063 (patch) | |
tree | 2c426aa544b42f96cfce83ab71f96a9d26dfbb3c /generic | |
parent | a13cb13704ff0df47c90366c40f7006bf99c12d5 (diff) | |
download | tkzinc-b0c719c0f7270a474d8204e8019eb73de946f063.zip tkzinc-b0c719c0f7270a474d8204e8019eb73de946f063.tar.gz tkzinc-b0c719c0f7270a474d8204e8019eb73de946f063.tar.bz2 tkzinc-b0c719c0f7270a474d8204e8019eb73de946f063.tar.xz |
Ajustement des ressources couleurs pour tenir compte de la
g�n�ralisation des gradients.
Ajout d'une section de compilation conditionnelle pour
permetttre la compilation sans GLX.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Triangles.c | 4 |
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 } |