Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Fix screen corruption with 16-width font on 8...



details:   https://anonhg.NetBSD.org/src/rev/9e1cdb66a246
branches:  trunk
changeset: 462109:9e1cdb66a246
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Jul 25 00:59:04 2019 +0000

description:
Fix screen corruption with 16-width font on 8-bpp display.

diffstat:

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

diffs (32 lines):

diff -r d7bd98388639 -r 9e1cdb66a246 sys/dev/rasops/rasops8.c
--- a/sys/dev/rasops/rasops8.c  Thu Jul 25 00:55:13 2019 +0000
+++ b/sys/dev/rasops/rasops8.c  Thu Jul 25 00:59:04 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops8.c,v 1.37 2019/07/24 18:33:49 rin Exp $ */
+/*     $NetBSD: rasops8.c,v 1.38 2019/07/25 00:59:04 rin Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.37 2019/07/24 18:33:49 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.38 2019/07/25 00:59:04 rin Exp $");
 
 #include "opt_rasops.h"
 
@@ -564,11 +564,13 @@
        if (uc == ' ') {
                while (height--) {
                        rp[0] = rp[1] = rp[2] = rp[3] = stamp[0];
+                       DELTA(rp, ri->ri_stride, uint32_t *);
                        if (ri->ri_hwbits) {
                                hrp[0] = stamp[0];
                                hrp[1] = stamp[0];
                                hrp[2] = stamp[0];
                                hrp[3] = stamp[0];
+                               DELTA(hrp, ri->ri_stride, uint32_t *);
                        }
                }
        } else {



Home | Main Index | Thread Index | Old Index