summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-12-25 16:42:45 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-12-25 16:42:45 +0000
commit10c1e67ee72598c5e517260f2fbff86cd9583e29 (patch)
tree5aa21703203dc2d33adc7f3aa17b26e558bf17d1 /sys
parent8f0b5c7ac3f2706274ec499368bee4d955f7e90f (diff)
Correctly display underlined spaces.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/dev/tcx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/tcx.c b/sys/arch/sparc/dev/tcx.c
index d0ef71134d5..3339348e5f8 100644
--- a/sys/arch/sparc/dev/tcx.c
+++ b/sys/arch/sparc/dev/tcx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcx.c,v 1.40 2008/12/24 22:12:35 miod Exp $ */
+/* $OpenBSD: tcx.c,v 1.41 2008/12/25 16:42:44 miod Exp $ */
/* $NetBSD: tcx.c,v 1.8 1997/07/29 09:58:14 fair Exp $ */
/*
@@ -912,7 +912,8 @@ tcx_putchar(void *cookie, int row, int col, u_int uc, long attr)
if (uc == ' ') {
/* inline tcx_erasecols(cookie, row, col, 1, attr) */
for (h = font->fontheight; h != 0; y++, h--)
- tcx_stipple(sc, x, y, font->fontwidth, GXcopy, bg);
+ tcx_stipple(sc, x, y, font->fontwidth, GXcopy,
+ h == 2 && ul != 0 ? fg : bg);
} else {
int rx;
int lbcnt, rbcnt;