Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci we need to zap the glyph cache when re-initializ...
details: https://anonhg.NetBSD.org/src/rev/18fde0988dba
branches: trunk
changeset: 778070:18fde0988dba
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Mar 15 03:12:51 2012 +0000
description:
we need to zap the glyph cache when re-initializing after X
diffstat:
sys/dev/pci/voodoofb.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 4c24c5b22bfd -r 18fde0988dba sys/dev/pci/voodoofb.c
--- a/sys/dev/pci/voodoofb.c Thu Mar 15 03:04:05 2012 +0000
+++ b/sys/dev/pci/voodoofb.c Thu Mar 15 03:12:51 2012 +0000
@@ -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 @@
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 {
Home |
Main Index |
Thread Index |
Old Index