From abc6851e43003bf24f21ea7f2d11f435c32b57f7 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 13 Oct 2004 09:05:56 +0000 Subject: Changed the border line size to obtain solid lines in GL --- generic/Field.c | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'generic') diff --git a/generic/Field.c b/generic/Field.c index fafc9bc..1de3644 100644 --- a/generic/Field.c +++ b/generic/Field.c @@ -1979,9 +1979,7 @@ FieldRenderCB(void *closure) glVertex2d(bbox->corner.x, bbox->orig.y); glEnd(); } -#endif -#ifdef GL static void RenderField(ZnWInfo *wi, Field fptr, @@ -2029,7 +2027,7 @@ RenderField(ZnWInfo *wi, } /* - * Draw the image and the text, which one is in back depends on + * Draw the image and the text, which one is back depends on * the value of text_on_top. */ for (j = 0; j < 2; j++) { @@ -2113,7 +2111,7 @@ RenderField(ZnWInfo *wi, color = ZnGetGradientColor(fptr->border_color, 0.0, &alpha); alpha = ZnComposeAlpha(alpha, wi->alpha); glColor4us(color->red, color->green, color->blue, alpha); - glLineWidth(1.0); + glLineWidth(1.5); ZnSetLineStyle(wi, ZN_LINE_SIMPLE); glBegin(GL_LINES); if (fptr->border_edges & ZN_LEFT_BORDER) { @@ -2143,25 +2141,16 @@ RenderField(ZnWInfo *wi, glEnd(); } } -#else -static void -RenderField(ZnWInfo *wi __unused, - Field fptr __unused, - ZnBBox *bbox __unused, - ZnBBox *pm_bbox __unused, - ZnPoint *text_pos __unused, - ZnBBox *text_bbox __unused, - int cursor __unused, - int sel_start __unused, - int sel_stop __unused) -{ -} #endif static void RenderFields(ZnFieldSet field_set) { +#ifdef GL + /* glDisable(GL_LINE_SMOOTH);*/ FieldsEngine(field_set, RenderField); + /* glEnable(GL_LINE_SMOOTH);*/ +#endif } -- cgit v1.1