Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev - set RI_FULLCLEAR
details: https://anonhg.NetBSD.org/src/rev/d000bde8a5b5
branches: trunk
changeset: 353170:d000bde8a5b5
user: macallan <macallan%NetBSD.org@localhost>
date: Sat Apr 22 15:07:49 2017 +0000
description:
- set RI_FULLCLEAR
- clear RI_CURSOR when we clear the screen
no more garbage when switching screens
while there set RI_PREFER_ALPHA
diffstat:
sys/arch/sparc64/dev/ffb.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 9bbc027203ae -r d000bde8a5b5 sys/arch/sparc64/dev/ffb.c
--- a/sys/arch/sparc64/dev/ffb.c Sat Apr 22 15:05:02 2017 +0000
+++ b/sys/arch/sparc64/dev/ffb.c Sat Apr 22 15:07:49 2017 +0000
@@ -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 @@
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 @@
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 @@
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
Home |
Main Index |
Thread Index |
Old Index