summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoruwe <uwe@NetBSD.org>2022-05-15 10:29:20 +0000
committeruwe <uwe@NetBSD.org>2022-05-15 10:29:20 +0000
commit9de9e04e008f8882f1ecff7e1d285383de19ecca (patch)
tree419c74143fea0c6b55ac949fb334e2e4e9375192 /sys/dev
parent1f9101f84b0aee853f46f6e25819a593e90ec735 (diff)
rasops: make autogenerated box drawing chars actually used
Fix mapchar to use PICK_FONT() to match what putchar does. Otherwise putchar will never get to see the glyph codes for the autogenerated box drawing chars.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/rasops/rasops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c
index 68216052273..359a55df56a 100644
--- a/sys/dev/rasops/rasops.c
+++ b/sys/dev/rasops/rasops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops.c,v 1.125 2021/12/24 18:12:58 jmcneill Exp $ */
+/* $NetBSD: rasops.c,v 1.126 2022/05/15 10:29:20 uwe Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.125 2021/12/24 18:12:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.126 2022/05/15 10:29:20 uwe Exp $");
#ifdef _KERNEL_OPT
#include "opt_rasops.h"
@@ -597,7 +597,7 @@ rasops_mapchar(void *cookie, int c, u_int *cp)
KASSERT(ri->ri_font != NULL);
if ((c = wsfont_map_unichar(ri->ri_font, c)) < 0 ||
- !CHAR_IN_FONT(c, ri->ri_font)) {
+ !CHAR_IN_FONT(c, PICK_FONT(ri, c))) {
*cp = ' ';
return 0;
}