Module Name: src Committed By: rin Date: Mon Jul 29 17:22:19 UTC 2019
Modified Files: src/sys/dev/rasops: rasops1_putchar_width.h rasops_putchar_width.h Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/rasops/rasops1_putchar_width.h cvs rdiff -u -r1.7 -r1.8 src/sys/dev/rasops/rasops_putchar_width.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/rasops/rasops1_putchar_width.h diff -u src/sys/dev/rasops/rasops1_putchar_width.h:1.1 src/sys/dev/rasops/rasops1_putchar_width.h:1.2 --- src/sys/dev/rasops/rasops1_putchar_width.h:1.1 Mon Jul 29 02:57:41 2019 +++ src/sys/dev/rasops/rasops1_putchar_width.h Mon Jul 29 17:22:19 2019 @@ -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 @@ PUTCHAR_WIDTH(RASOPS_WIDTH)(void *cookie 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 *); } Index: src/sys/dev/rasops/rasops_putchar_width.h diff -u src/sys/dev/rasops/rasops_putchar_width.h:1.7 src/sys/dev/rasops/rasops_putchar_width.h:1.8 --- src/sys/dev/rasops/rasops_putchar_width.h:1.7 Mon Jul 29 03:01:09 2019 +++ src/sys/dev/rasops/rasops_putchar_width.h Mon Jul 29 17:22:19 2019 @@ -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 @@ PUTCHAR_WIDTH(RASOPS_DEPTH, RASOPS_WIDTH 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 *); }