Module Name:    src
Committed By:   macallan
Date:           Sat Apr 22 15:07:49 UTC 2017

Modified Files:
        src/sys/arch/sparc64/dev: ffb.c

Log Message:
- set RI_FULLCLEAR
- clear RI_CURSOR when we clear the screen
no more garbage when switching screens
while there set RI_PREFER_ALPHA


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/sparc64/dev/ffb.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/arch/sparc64/dev/ffb.c
diff -u src/sys/arch/sparc64/dev/ffb.c:1.58 src/sys/arch/sparc64/dev/ffb.c:1.59
--- src/sys/arch/sparc64/dev/ffb.c:1.58	Fri Nov  4 16:35:32 2016
+++ src/sys/arch/sparc64/dev/ffb.c	Sat Apr 22 15:07:49 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ffb.c,v 1.58 2016/11/04 16:35:32 macallan Exp $	*/
+/*	$NetBSD: ffb.c,v 1.59 2017/04/22 15:07:49 macallan Exp $	*/
 /*	$OpenBSD: creator.c,v 1.20 2002/07/30 19:48:15 jason Exp $	*/
 
 /*
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.58 2016/11/04 16:35:32 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.59 2017/04/22 15:07:49 macallan Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -695,6 +695,7 @@ ffb_ras_eraserows(void *cookie, int row,
 		FBC_WRITE(sc, FFB_FBC_BX, 0);
 		FBC_WRITE(sc, FFB_FBC_BH, ri->ri_height);
 		FBC_WRITE(sc, FFB_FBC_BW, ri->ri_width);
+		ri->ri_flg &= ~RI_CURSOR;
 	} else {
 		row *= ri->ri_font->fontheight;
 		FBC_WRITE(sc, FFB_FBC_BY, ri->ri_yorigin + row);
@@ -722,6 +723,7 @@ ffb_ras_erasecols(void *cookie, int row,
 		n = ri->ri_cols - col;
 	if (n <= 0)
 		return;
+
 	n *= ri->ri_font->fontwidth;
 	col *= ri->ri_font->fontwidth;
 	row *= ri->ri_font->fontheight;
@@ -1215,7 +1217,8 @@ ffb_init_screen(void *cookie, struct vco
 	ri->ri_width = sc->sc_width;
 	ri->ri_height = sc->sc_height;
 	ri->ri_stride = sc->sc_linebytes;
-	ri->ri_flg = RI_CENTER | RI_ENABLE_ALPHA;
+	ri->ri_flg = RI_CENTER | RI_ENABLE_ALPHA | RI_PREFER_ALPHA |
+		     RI_FULLCLEAR;
 
 	/*
 	 * we can't accelerate copycols() so instead of falling back to

Reply via email to