Module Name: src
Committed By: uwe
Date: Sun May 15 10:29:20 UTC 2022
Modified Files:
src/sys/dev/rasops: rasops.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/sys/dev/rasops/rasops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/rasops/rasops.c
diff -u src/sys/dev/rasops/rasops.c:1.125 src/sys/dev/rasops/rasops.c:1.126
--- src/sys/dev/rasops/rasops.c:1.125 Fri Dec 24 18:12:58 2021
+++ src/sys/dev/rasops/rasops.c Sun May 15 10:29:20 2022
@@ -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_in
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;
}