From bfcdb3b51ea88028b63f3f2d9577659e4119d20a Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 23 Mar 2004 14:53:46 +0000 Subject: Changes related to OpenGL context handling (only one context per display) and patches to avoid using widget structure in image cache */ --- generic/Draw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'generic/Draw.c') 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 #include @@ -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); -- cgit v1.1