Module Name: src
Committed By: rin
Date: Wed Aug 7 11:57:40 UTC 2019
Modified Files:
src/sys/dev/rasops: rasops.c
Log Message:
If RI_CLEAR is set, do not forget to clear real framebuffer.
To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sys/dev/rasops/rasops.c
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/rasops.c
diff -u src/sys/dev/rasops/rasops.c:1.115 src/sys/dev/rasops/rasops.c:1.116
--- src/sys/dev/rasops/rasops.c:1.115 Wed Aug 7 11:47:33 2019
+++ src/sys/dev/rasops/rasops.c Wed Aug 7 11:57:40 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops.c,v 1.115 2019/08/07 11:47:33 rin Exp $ */
+/* $NetBSD: rasops.c,v 1.116 2019/08/07 11:57:40 rin Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.115 2019/08/07 11:47:33 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.116 2019/08/07 11:57:40 rin Exp $");
#ifdef _KERNEL_OPT
#include "opt_rasops.h"
@@ -442,8 +442,12 @@ rasops_reconfig(struct rasops_info *ri,
ri->ri_hworigbits = ri->ri_hwbits;
/* Clear the entire display */
- if ((ri->ri_flg & RI_CLEAR) != 0)
- memset(ri->ri_bits, 0, ri->ri_stride * ri->ri_height);
+ if ((ri->ri_flg & RI_CLEAR) != 0) {
+ rasops_memset32(ri->ri_bits, 0, ri->ri_stride * ri->ri_height);
+ if (ri->ri_hwbits)
+ rasops_memset32(ri->ri_hwbits, 0,
+ ri->ri_stride * ri->ri_height);
+ }
/* Now centre our window if needs be */
if ((ri->ri_flg & RI_CENTER) != 0) {