summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-02-29 21:24:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-02-29 21:24:38 +0000
commitdf46e8ff21dc5f3937081be70618ad6c0c6ff0f7 (patch)
tree5a108866afaf9b46c37081eb1e46a19ebdd67d7d /sys/arch/sparc64
parent977758f8ffbbf1a34d453839196efc66dca86910 (diff)
More colormap games for 8-bit framebuffers to enjoy the inverted cursor too.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/fb.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/fb.c b/sys/arch/sparc64/dev/fb.c
index 8c09b2d4fc6..22a1f5ea8c4 100644
--- a/sys/arch/sparc64/dev/fb.c
+++ b/sys/arch/sparc64/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.4 2003/10/05 18:34:43 miod Exp $ */
+/* $OpenBSD: fb.c,v 1.5 2004/02/29 21:24:37 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -238,10 +238,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);
}
}