Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops If RI_CLEAR is set, do not forget to clear re...



details:   https://anonhg.NetBSD.org/src/rev/f2bac38671ef
branches:  trunk
changeset: 844198:f2bac38671ef
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Aug 07 11:57:40 2019 +0000

description:
If RI_CLEAR is set, do not forget to clear real framebuffer.

diffstat:

 sys/dev/rasops/rasops.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r f6265102a99f -r f2bac38671ef sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Wed Aug 07 11:48:43 2019 +0000
+++ b/sys/dev/rasops/rasops.c   Wed Aug 07 11:57:40 2019 +0000
@@ -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 @@
        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) {



Home | Main Index | Thread Index | Old Index