Module Name:    src
Committed By:   macallan
Date:           Wed Aug 15 17:43:59 UTC 2012

Modified Files:
        src/sys/dev/pci: machfb.c

Log Message:
don't forget to clear the screen and wipe the glyph cache when re-entering
terminal emulation mode


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/dev/pci/machfb.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/pci/machfb.c
diff -u src/sys/dev/pci/machfb.c:1.81 src/sys/dev/pci/machfb.c:1.82
--- src/sys/dev/pci/machfb.c:1.81	Wed Aug 15 17:02:41 2012
+++ src/sys/dev/pci/machfb.c	Wed Aug 15 17:43:59 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: machfb.c,v 1.81 2012/08/15 17:02:41 macallan Exp $	*/
+/*	$NetBSD: machfb.c,v 1.82 2012/08/15 17:43:59 macallan Exp $	*/
 
 /*
  * Copyright (c) 2002 Bang Jun-Young
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 __KERNEL_RCSID(0, 
-	"$NetBSD: machfb.c,v 1.81 2012/08/15 17:02:41 macallan Exp $");
+	"$NetBSD: machfb.c,v 1.82 2012/08/15 17:43:59 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1897,6 +1897,8 @@ mach64_ioctl(void *v, void *vs, u_long c
 				mach64_init_engine(sc);
 				mach64_init_lut(sc);
 				mach64_modeswitch(sc, sc->sc_my_mode);
+				mach64_clearscreen(sc);
+				glyphcache_wipe(&sc->sc_gc);
 				vcons_redraw_screen(ms);
 			}
 		}

Reply via email to