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 don't assume that wscons assumes BGR or...
details: https://anonhg.NetBSD.org/src/rev/e75bcb546689
branches: trunk
changeset: 778754:e75bcb546689
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Apr 12 19:09:18 2012 +0000
description:
don't assume that wscons assumes BGR ordering and request it explicitly
diffstat:
sys/arch/sparc64/dev/ffb.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 91dd656a272d -r e75bcb546689 sys/arch/sparc64/dev/ffb.c
--- a/sys/arch/sparc64/dev/ffb.c Thu Apr 12 18:55:26 2012 +0000
+++ b/sys/arch/sparc64/dev/ffb.c Thu Apr 12 19:09:18 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffb.c,v 1.50 2012/01/11 15:53:32 macallan Exp $ */
+/* $NetBSD: ffb.c,v 1.51 2012/04/12 19:09:18 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.50 2012/01/11 15:53:32 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffb.c,v 1.51 2012/04/12 19:09:18 macallan Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1188,6 +1188,14 @@
#endif
DPRINTF(("ffb_init_screen: addr: %08lx\n",(ulong)ri->ri_bits));
+ /* explicitly request BGR in case the default changes */
+ ri->ri_rnum = 8;
+ ri->ri_gnum = 8;
+ ri->ri_bnum = 8;
+ ri->ri_rpos = 0;
+ ri->ri_gpos = 8;
+ ri->ri_bpos = 16;
+
rasops_init(ri, 0, 0);
ri->ri_caps = WSSCREEN_WSCOLORS;
rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight,
Home |
Main Index |
Thread Index |
Old Index