Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci clear the screen before redrawing on reentering ...
details: https://anonhg.NetBSD.org/src/rev/34e908500909
branches: trunk
changeset: 760500:34e908500909
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Jan 06 07:43:05 2011 +0000
description:
clear the screen before redrawing on reentering text mode
diffstat:
sys/dev/pci/r128fb.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 7e18a8bfa59e -r 34e908500909 sys/dev/pci/r128fb.c
--- a/sys/dev/pci/r128fb.c Thu Jan 06 07:28:32 2011 +0000
+++ b/sys/dev/pci/r128fb.c Thu Jan 06 07:43:05 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: r128fb.c,v 1.18 2010/12/25 03:29:08 macallan Exp $ */
+/* $NetBSD: r128fb.c,v 1.19 2011/01/06 07:43:05 macallan Exp $ */
/*
* Copyright (c) 2007 Michael Lorenz
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: r128fb.c,v 1.18 2010/12/25 03:29:08 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: r128fb.c,v 1.19 2011/01/06 07:43:05 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -381,6 +381,9 @@
if(new_mode == WSDISPLAYIO_MODE_EMUL) {
r128fb_init(sc);
r128fb_restore_palette(sc);
+ r128fb_rectfill(sc, 0, 0, sc->sc_width,
+ sc->sc_height, ms->scr_ri.ri_devcmap[
+ (ms->scr_defattr >> 16) & 0xff]);
vcons_redraw_screen(ms);
}
}
Home |
Main Index |
Thread Index |
Old Index