Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Try to fix problem reported by ryoon:



details:   https://anonhg.NetBSD.org/src/rev/3238f686c7da
branches:  trunk
changeset: 962716:3238f686c7da
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Jul 29 17:22:19 2019 +0000

description:
Try to fix problem reported by ryoon:
http://mail-index.netbsd.org/source-changes-d/2019/07/29/msg011516.html

There are apparent bugs for shadow framebuffer. Sorry for the breakage.

diffstat:

 sys/dev/rasops/rasops1_putchar_width.h |  6 ++----
 sys/dev/rasops/rasops_putchar_width.h  |  6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

diffs (40 lines):

diff -r 28c8556fe788 -r 3238f686c7da sys/dev/rasops/rasops1_putchar_width.h
--- a/sys/dev/rasops/rasops1_putchar_width.h    Mon Jul 29 16:17:29 2019 +0000
+++ b/sys/dev/rasops/rasops1_putchar_width.h    Mon Jul 29 17:22:19 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops1_putchar_width.h,v 1.1 2019/07/29 02:57:41 rin Exp $ */
+/* $NetBSD: rasops1_putchar_width.h,v 1.2 2019/07/29 17:22:19 rin Exp $ */
 
 /* NetBSD: rasops1.c,v 1.28 2019/07/25 03:02:44 rin Exp */
 /*-
@@ -94,9 +94,7 @@
                while (height--) {
                        *rp = bg;
                        DELTA(rp, rs, COPY_UNIT *);
-               }
-               if (ri->ri_hwbits) {
-                       while (height--) {
+                       if (ri->ri_hwbits) {
                                *hrp = bg;
                                DELTA(hrp, rs, COPY_UNIT *);
                        }
diff -r 28c8556fe788 -r 3238f686c7da sys/dev/rasops/rasops_putchar_width.h
--- a/sys/dev/rasops/rasops_putchar_width.h     Mon Jul 29 16:17:29 2019 +0000
+++ b/sys/dev/rasops/rasops_putchar_width.h     Mon Jul 29 17:22:19 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops_putchar_width.h,v 1.7 2019/07/29 03:01:09 rin Exp $ */
+/* $NetBSD: rasops_putchar_width.h,v 1.8 2019/07/29 17:22:19 rin Exp $ */
 
 /* NetBSD: rasops8.c,v 1.41 2019/07/25 03:02:44 rin Exp  */
 /*-
@@ -252,9 +252,7 @@
                while (height--) {
                        SUBST_STAMP(rp, 0);
                        DELTA(rp, ri->ri_stride, STAMP_TYPE *);
-               }
-               if (ri->ri_hwbits) {
-                       while (height--) {
+                       if (ri->ri_hwbits) {
                                SUBST_STAMP(hrp, 0);
                                DELTA(hrp, ri->ri_stride, STAMP_TYPE *);
                        }



Home | Main Index | Thread Index | Old Index