diff options
Diffstat (limited to 'generic/Draw.c')
-rw-r--r-- | generic/Draw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/Draw.c b/generic/Draw.c index 4375e13..ee37388 100644 --- a/generic/Draw.c +++ b/generic/Draw.c @@ -42,6 +42,7 @@ #include "List.h" #include "WidgetInfo.h" #include "Image.h" +#include "tkZinc.h" #include <math.h> #include <stdarg.h> @@ -1157,6 +1158,7 @@ ZnRenderPolyline(ZnWInfo *wi, ZnPoint c1, c2; XColor *color; unsigned short alpha; + ZnGLContextEntry *ce = ZnGetGLContext(wi->dpy); /* * The code below draws curves thiner than the min @@ -1166,8 +1168,8 @@ ZnRenderPolyline(ZnWInfo *wi, * BUG: The joints are drawn only rounded. * The caps can be either round or butt (but not projecting). */ - thin = ((line_width <= wi->max_line_width) && - (line_width <= wi->max_point_width)); + thin = ((line_width <= ce->max_line_width) && + (line_width <= ce->max_point_width)); closed = (points->x == points[num_points-1].x) && (points->y == points[num_points-1].y); color = ZnGetGradientColor(gradient, 0.0, &alpha); alpha = ZnComposeAlpha(alpha, wi->alpha); |