Module Name:    src
Committed By:   macallan
Date:           Wed Jul 18 02:31:47 UTC 2012

Modified Files:
        src/sys/dev/sun: cgsix.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/sun/cgsix.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/sun/cgsix.c
diff -u src/sys/dev/sun/cgsix.c:1.58 src/sys/dev/sun/cgsix.c:1.59
--- src/sys/dev/sun/cgsix.c:1.58	Fri Jul 13 19:48:45 2012
+++ src/sys/dev/sun/cgsix.c	Wed Jul 18 02:31:46 2012
@@ -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 @@ cgsixclose(dev_t dev, int flags, int mod
 
 		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 @@ cgsix_ioctl(void *v, void *vs, u_long cm
 						cg6_reset(sc);
 						cg6_ras_init(sc);
 						cg6_setup_palette(sc);
+						glyphcache_wipe(&sc->sc_gc);
 						vcons_redraw_screen(ms);
 					}
 				}

Reply via email to