Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sun wipe the glyph cache when re-entring terminal em...



details:   https://anonhg.NetBSD.org/src/rev/33534d65ab98
branches:  trunk
changeset: 780247:33534d65ab98
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Jul 18 02:31:46 2012 +0000

description:
wipe the glyph cache when re-entring terminal emulation mode

diffstat:

 sys/dev/sun/cgsix.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r d9393d191507 -r 33534d65ab98 sys/dev/sun/cgsix.c
--- a/sys/dev/sun/cgsix.c       Tue Jul 17 21:37:21 2012 +0000
+++ b/sys/dev/sun/cgsix.c       Wed Jul 18 02:31:46 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsix.c,v 1.58 2012/07/13 19:48:45 macallan Exp $ */
+/*     $NetBSD: cgsix.c,v 1.59 2012/07/18 02:31:46 macallan Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.58 2012/07/13 19:48:45 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.59 2012/07/18 02:31:46 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -704,6 +704,7 @@
 
                cg6_ras_init(sc);
                cg6_setup_palette(sc);
+               glyphcache_wipe(&sc->sc_gc);
 
                /* we don't know if the screen exists */
                if (ms != NULL)
@@ -1191,6 +1192,7 @@
                                                cg6_reset(sc);
                                                cg6_ras_init(sc);
                                                cg6_setup_palette(sc);
+                                               glyphcache_wipe(&sc->sc_gc);
                                                vcons_redraw_screen(ms);
                                        }
                                }



Home | Main Index | Thread Index | Old Index