Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/rasops rasops: make autogenerated box drawing chars ...



details:   https://anonhg.NetBSD.org/src/rev/d247fbf2c0ae
branches:  trunk
changeset: 366119:d247fbf2c0ae
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun May 15 10:29:20 2022 +0000

description:
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:

 sys/dev/rasops/rasops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d4c301c5643a -r d247fbf2c0ae sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Sun May 15 08:28:29 2022 +0000
+++ b/sys/dev/rasops/rasops.c   Sun May 15 10:29:20 2022 +0000
@@ -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 @@
        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;
        }



Home | Main Index | Thread Index | Old Index