Module Name: src Committed By: macallan Date: Thu Mar 15 03:12:51 UTC 2012
Modified Files: src/sys/dev/pci: voodoofb.c Log Message: we need to zap the glyph cache when re-initializing after X To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/dev/pci/voodoofb.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/voodoofb.c diff -u src/sys/dev/pci/voodoofb.c:1.39 src/sys/dev/pci/voodoofb.c:1.40 --- src/sys/dev/pci/voodoofb.c:1.39 Tue Mar 13 18:40:33 2012 +++ src/sys/dev/pci/voodoofb.c Thu Mar 15 03:12:51 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: voodoofb.c,v 1.39 2012/03/13 18:40:33 elad Exp $ */ +/* $NetBSD: voodoofb.c,v 1.40 2012/03/15 03:12:51 macallan Exp $ */ /* - * Copyright (c) 2005, 2006 Michael Lorenz + * Copyright (c) 2005, 2006, 2012 Michael Lorenz * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: voodoofb.c,v 1.39 2012/03/13 18:40:33 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: voodoofb.c,v 1.40 2012/03/15 03:12:51 macallan Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1165,6 +1165,14 @@ voodoofb_ioctl(void *v, void *vs, u_long sc->sc_cmap_green[i], sc->sc_cmap_blue[i]); } + + /* zap the glyph cache */ + for (i = 0; i < 256; i++) { + sc->sc_glyphs_defattr[i] = 0; + sc->sc_glyphs_kernattr[i] = 0; + } + sc->sc_usedglyphs = 0; + voodoofb_clearscreen(sc); vcons_redraw_screen(ms); } else {