Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/hpc disable framebuffer drawing while suspending.



details:   https://anonhg.NetBSD.org/src/rev/bee9ab4a2f5e
branches:  trunk
changeset: 512666:bee9ab4a2f5e
user:      sato <sato%NetBSD.org@localhost>
date:      Fri Jul 13 10:23:41 2001 +0000

description:
disable framebuffer drawing while suspending.

diffstat:

 sys/dev/hpc/hpcfb.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 35f984b2d1d5 -r bee9ab4a2f5e sys/dev/hpc/hpcfb.c
--- a/sys/dev/hpc/hpcfb.c       Fri Jul 13 06:54:35 2001 +0000
+++ b/sys/dev/hpc/hpcfb.c       Fri Jul 13 10:23:41 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpcfb.c,v 1.7 2001/07/07 09:19:40 toshii Exp $ */
+/*     $NetBSD: hpcfb.c,v 1.8 2001/07/13 10:23:41 sato Exp $   */
 
 /*-
  * Copyright (c) 1999
@@ -46,7 +46,7 @@
 static const char _copyright[] __attribute__ ((unused)) =
     "Copyright (c) 1999 Shin Takemura.  All rights reserved.";
 static const char _rcsid[] __attribute__ ((unused)) =
-    "$NetBSD: hpcfb.c,v 1.7 2001/07/07 09:19:40 toshii Exp $";
+    "$NetBSD: hpcfb.c,v 1.8 2001/07/13 10:23:41 sato Exp $";
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -663,8 +663,11 @@
                } else {
                        sc->sc_screen_resumed = WSDISPLAY_NULLSCREEN;
                }
+
+               sc->sc_dc->dc_state &= ~HPCFB_DC_CURRENT;
                break;
        case PWR_SOFTRESUME:
+               sc->sc_dc->dc_state |= HPCFB_DC_CURRENT;
                if (sc->sc_screen_resumed != WSDISPLAY_NULLSCREEN)
                        wsdisplay_switch(sc->sc_wsdisplay,
                            sc->sc_screen_resumed,



Home | Main Index | Thread Index | Old Index