summaryrefslogtreecommitdiff
path: root/sys/dev/rasops
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-10-18 17:38:35 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-10-18 17:38:35 +0000
commitf3eb11c90276d13290914d17f58b32a134d7d359 (patch)
treef8305f5bbb2dbe483c08c39f04c6d1fc84020a0c /sys/dev/rasops
parentfd5083d1b4482a15181a47fa14dfea6317153654 (diff)
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.
Diffstat (limited to 'sys/dev/rasops')
-rw-r--r--sys/dev/rasops/rasops.c8
1 files changed, 4 insertions, 4 deletions
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);
}