diff options
author | 2013-10-18 17:38:33 +0000 | |
---|---|---|
committer | 2013-10-18 17:38:33 +0000 | |
commit | 063895d5bb2ccc5b93ab0fd390efa7c8116d0e7a (patch) | |
tree | af51b236b2a93c9e8af56a3c3e662cf991fd1598 | |
parent | bugfix update to 1.4.3 (diff) | |
download | wireguard-openbsd-063895d5bb2ccc5b93ab0fd390efa7c8116d0e7a.tar.xz wireguard-openbsd-063895d5bb2ccc5b93ab0fd390efa7c8116d0e7a.zip |
Make sure that, when a particular mapchar() can't find a proper glyph for the
requested character in the font it is using, it suggests a question mark
character, instead of a space, so that the existence of the non-representable
character becomes visible.
Note that this is consistent with pcdisplay which suggests a diamond for
missing glyphs.
-rw-r--r-- | sys/arch/sparc64/dev/pcons.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/sti.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/vga.c | 4 | ||||
-rw-r--r-- | sys/dev/rasops/rasops.c | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c index 84ebc0ac4a5..c31121cf7b3 100644 --- a/sys/arch/sparc64/dev/pcons.c +++ b/sys/arch/sparc64/dev/pcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcons.c,v 1.18 2010/06/28 14:13:31 deraadt Exp $ */ +/* $OpenBSD: pcons.c,v 1.19 2013/10/18 17:38:33 miod Exp $ */ /* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */ /*- @@ -659,7 +659,7 @@ pcons_mapchar(void *v, int uc, unsigned int *idx) *idx = uc; return (1); } else { - *idx = ' '; + *idx = '?'; return (0); } } diff --git a/sys/dev/ic/sti.c b/sys/dev/ic/sti.c index 7dc93747c11..cdcd80dbab4 100644 --- a/sys/dev/ic/sti.c +++ b/sys/dev/ic/sti.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sti.c,v 1.65 2012/05/06 13:23:54 mikeb Exp $ */ +/* $OpenBSD: sti.c,v 1.66 2013/10/18 17:38:33 miod Exp $ */ /* * Copyright (c) 2000-2003 Michael Shalayeff @@ -1181,7 +1181,7 @@ sti_mapchar(void *v, int uni, u_int *index) } if (c == -1 || c < fp->first || c > fp->last) { - *index = ' '; + *index = '?'; return (0); } diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c index e29567593b8..9ebabf47d5d 100644 --- a/sys/dev/ic/vga.c +++ b/sys/dev/ic/vga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vga.c,v 1.57 2013/07/06 14:36:33 kettenis Exp $ */ +/* $OpenBSD: vga.c,v 1.58 2013/10/18 17:38:33 miod Exp $ */ /* $NetBSD: vga.c,v 1.28.2.1 2000/06/30 16:27:47 simonb Exp $ */ /*- @@ -1213,7 +1213,7 @@ _vga_mapchar(void *id, struct vgafont *font, int uni, unsigned int *index) #ifdef VGAFONTDEBUG printf("_vga_mapchar: encoding=%d\n", font->encoding); #endif - *index = ' '; + *index = '?'; return (0); } } diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index 850a8d620c2..c9233eb16b8 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops.c,v 1.27 2013/08/20 17:44:34 kettenis Exp $ */ +/* $OpenBSD: rasops.c,v 1.28 2013/10/18 17:38:34 miod Exp $ */ /* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */ /*- @@ -473,7 +473,7 @@ rasops_mapchar(void *cookie, int c, u_int *cp) if ( (c = wsfont_map_unichar(ri->ri_font, c)) < 0) { - *cp = ' '; + *cp = '?'; return (0); } @@ -481,12 +481,12 @@ rasops_mapchar(void *cookie, int c, u_int *cp) if (c < ri->ri_font->firstchar) { - *cp = ' '; + *cp = '?'; return (0); } if (c - ri->ri_font->firstchar >= ri->ri_font->numchars) { - *cp = ' '; + *cp = '?'; return (0); } |