diff options
| author | macallan <macallan@NetBSD.org> | 2012-07-18 02:31:46 +0000 |
|---|---|---|
| committer | macallan <macallan@NetBSD.org> | 2012-07-18 02:31:46 +0000 |
| commit | d808e7adf25c5a0ff23315be28bf8559fb717bb3 (patch) | |
| tree | 0b514ff5906fa27911f842f727adba090a734f26 /sys/dev | |
| parent | f8ab8c4a6a5e039544cf4078ccdf2589637c54ca (diff) | |
wipe the glyph cache when re-entring terminal emulation mode
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sun/cgsix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sun/cgsix.c b/sys/dev/sun/cgsix.c index 3d20973aca1..444d3758df0 100644 --- a/sys/dev/sun/cgsix.c +++ b/sys/dev/sun/cgsix.c @@ -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 mode, struct lwp *l) 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 cmd, void *data, int flag, cg6_reset(sc); cg6_ras_init(sc); cg6_setup_palette(sc); + glyphcache_wipe(&sc->sc_gc); vcons_redraw_screen(ms); } } |
