summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/fb.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index 54b7905a0b4..243b1930f8f 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.27 2003/10/05 18:34:42 miod Exp $ */
+/* $OpenBSD: fb.c,v 1.28 2004/02/29 21:24:36 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -412,10 +412,15 @@ fbwscons_setcolormap(struct sunfb *sf,
color = (u_char *)&rasops_cmap[i * 3];
setcolor(sf, i, color[0], color[1], color[2]);
}
+ for (i = 240; i < 256; i++) {
+ color = (u_char *)&rasops_cmap[i * 3];
+ setcolor(sf, i, color[0], color[1], color[2]);
+ }
/* compensate for BoW palette */
setcolor(sf, WSCOL_BLACK, 0, 0, 0);
- setcolor(sf, 255, 0, 0, 0); /* cursor */
+ setcolor(sf, 0xff ^ WSCOL_BLACK, 255, 255, 255);
setcolor(sf, WSCOL_WHITE, 255, 255, 255);
+ setcolor(sf, 0xff ^ WSCOL_WHITE, 0, 0, 0);
}
}