Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev wipe glyph cache as needed when re-enteri...



details:   https://anonhg.NetBSD.org/src/rev/b2aa2466bd02
branches:  trunk
changeset: 347799:b2aa2466bd02
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Sep 16 22:39:35 2016 +0000

description:
wipe glyph cache as needed when re-entering text mode
now the console is readable again when leaving X

diffstat:

 sys/arch/sparc/dev/cgfourteen.c |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 5a77016c1623 -r b2aa2466bd02 sys/arch/sparc/dev/cgfourteen.c
--- a/sys/arch/sparc/dev/cgfourteen.c   Fri Sep 16 20:31:00 2016 +0000
+++ b/sys/arch/sparc/dev/cgfourteen.c   Fri Sep 16 22:39:35 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgfourteen.c,v 1.81 2016/06/02 21:19:24 macallan Exp $ */
+/*     $NetBSD: cgfourteen.c,v 1.82 2016/09/16 22:39:35 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -418,9 +418,13 @@
        /*
         * Restore video state to make the PROM happy, on last close.
         */
-       if (opens == 0)
+       if (opens == 0) {
                cg14_reset(sc);
-
+#if NSX > 0
+               if (sc->sc_sx)
+                       glyphcache_wipe(&sc->sc_gc);
+#endif
+       }
        return (0);
 }
 
@@ -918,6 +922,10 @@
 
                                                cg14_set_depth(sc, 8);
                                                cg14_init_cmap(sc);
+#if NSX > 0
+                                               if (sc->sc_sx)
+                                                       glyphcache_wipe(&sc->sc_gc);
+#endif
                                                vcons_redraw_screen(ms);
                                        } else {
 



Home | Main Index | Thread Index | Old Index