Module Name: src Committed By: macallan Date: Thu Jan 6 07:43:06 UTC 2011
Modified Files: src/sys/dev/pci: r128fb.c Log Message: clear the screen before redrawing on reentering text mode To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/dev/pci/r128fb.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/r128fb.c diff -u src/sys/dev/pci/r128fb.c:1.18 src/sys/dev/pci/r128fb.c:1.19 --- src/sys/dev/pci/r128fb.c:1.18 Sat Dec 25 03:29:08 2010 +++ src/sys/dev/pci/r128fb.c Thu Jan 6 07:43:05 2011 @@ -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); } }