Module Name:    src
Committed By:   macallan
Date:           Tue May  5 23:55:04 UTC 2009

Modified Files:
        src/sys/dev/sbus: zx.c

Log Message:
clear screen on attach


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/sbus/zx.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/sbus/zx.c
diff -u src/sys/dev/sbus/zx.c:1.27 src/sys/dev/sbus/zx.c:1.28
--- src/sys/dev/sbus/zx.c:1.27	Thu Apr 23 20:46:49 2009
+++ src/sys/dev/sbus/zx.c	Tue May  5 23:55:04 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: zx.c,v 1.27 2009/04/23 20:46:49 macallan Exp $	*/
+/*	$NetBSD: zx.c,v 1.28 2009/05/05 23:55:04 macallan Exp $	*/
 
 /*
  *  Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.27 2009/04/23 20:46:49 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.28 2009/05/05 23:55:04 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -218,7 +218,7 @@
 	struct rasops_info *ri = &zx_console_screen.scr_ri;
 	unsigned long defattr;
 #endif
-	int isconsole;
+	int isconsole, width, height;
 
 	sc = device_private(self);
 	sc->sc_dv = self;
@@ -324,6 +324,8 @@
 		zx_defaultscreen.capabilities = WSSCREEN_WSCOLORS;
 		zx_defaultscreen.nrows = ri->ri_rows;
 		zx_defaultscreen.ncols = ri->ri_cols;
+		zx_fillrect(sc, 0, 0, width, height,
+		     ri->ri_devcmap[defattr >> 16], ZX_STD_ROP);
 		wsdisplay_cnattach(&zx_defaultscreen, ri, 0, 0, defattr);	
 	} else {
 		/* 

Reply via email to