Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Support font width 32 on monochrome screen.



details:   https://anonhg.NetBSD.org/src/rev/b7c26abfcc1e
branches:  trunk
changeset: 453207:b7c26abfcc1e
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Aug 02 04:23:20 2019 +0000

description:
Support font width 32 on monochrome screen.

diffstat:

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

diffs (27 lines):

diff -r cecc8bd876da -r b7c26abfcc1e sys/dev/rasops/rasops1.c
--- a/sys/dev/rasops/rasops1.c  Fri Aug 02 04:22:04 2019 +0000
+++ b/sys/dev/rasops/rasops1.c  Fri Aug 02 04:23:20 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops1.c,v 1.32 2019/07/31 00:14:25 rin Exp $ */
+/*     $NetBSD: rasops1.c,v 1.33 2019/08/02 04:23:20 rin Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops1.c,v 1.32 2019/07/31 00:14:25 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops1.c,v 1.33 2019/08/02 04:23:20 rin Exp $");
 
 #include "opt_rasops.h"
 
@@ -136,7 +136,7 @@
        if (col + width <= 32) {
                /* Single word, only one mask */
 
-               rmask = rasops_pmask[col][width];
+               rmask = rasops_pmask[col][width & 31];
                lmask = ~rmask;
 
                if (space) {



Home | Main Index | Thread Index | Old Index