Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Now does character remapping depending on fon...



details:   https://anonhg.NetBSD.org/src/rev/ecd9f07f9677
branches:  trunk
changeset: 503168:ecd9f07f9677
user:      marcus <marcus%NetBSD.org@localhost>
date:      Fri Feb 02 06:01:01 2001 +0000

description:
Now does character remapping depending on font encoding.

diffstat:

 sys/dev/rasops/rasops.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 24347ecc6020 -r ecd9f07f9677 sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Fri Feb 02 06:00:38 2001 +0000
+++ b/sys/dev/rasops/rasops.c   Fri Feb 02 06:01:01 2001 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rasops.c,v 1.34 2001/01/21 13:50:59 takemura Exp $    */
+/*      $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $      */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.34 2001/01/21 13:50:59 takemura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $");
 
 #include "opt_rasops.h"
 #include "rasops_glue.h"
@@ -331,6 +331,16 @@
        if (ri->ri_font == NULL)
                panic("rasops_mapchar: no font selected\n");
 #endif
+       if (ri->ri_font->encoding != WSDISPLAY_FONTENC_ISO) {
+
+               if ( (c = wsfont_map_unichar(ri->ri_font, c)) < 0) {
+
+                       *cp = ' ';
+                       return (0);
+
+               }
+       }
+
 
        if (c < ri->ri_font->firstchar) {
                *cp = ' ';



Home | Main Index | Thread Index | Old Index