aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlecoanet2004-10-13 09:05:56 +0000
committerlecoanet2004-10-13 09:05:56 +0000
commitabc6851e43003bf24f21ea7f2d11f435c32b57f7 (patch)
treed81f4caf9736f53a210534cdcd91dae069ec2888
parent1ebf58856d554a1d9e13904a689dbf97a99cf2f8 (diff)
downloadtkzinc-abc6851e43003bf24f21ea7f2d11f435c32b57f7.zip
tkzinc-abc6851e43003bf24f21ea7f2d11f435c32b57f7.tar.gz
tkzinc-abc6851e43003bf24f21ea7f2d11f435c32b57f7.tar.bz2
tkzinc-abc6851e43003bf24f21ea7f2d11f435c32b57f7.tar.xz
Changed the border line size to obtain solid lines in GL
-rw-r--r--generic/Field.c23
1 files changed, 6 insertions, 17 deletions
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
}