summaryrefslogtreecommitdiff
path: root/sys/dev/ic/bt485.c
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2001-04-20 21:58:12 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2001-04-20 21:58:12 +0000
commit051c32905d27d5b53f1d5b93d2b3060e7eb9d12c (patch)
tree4a2fe01412dbcf3bd6b5437b6415b75ef80bfee5 /sys/dev/ic/bt485.c
parent920e3fbddb4690f7d72158a499f54fc3ec8db63d (diff)
Instead of initializing the colormap to me black & white, initialize the
colormap to use ansi colors. This makes alpha kernel messages come out in color during boot, and it allows console users to get ansi colors. ok deraadt@
Diffstat (limited to 'sys/dev/ic/bt485.c')
-rw-r--r--sys/dev/ic/bt485.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/ic/bt485.c b/sys/dev/ic/bt485.c
index d5d4964c214..0eb0f555217 100644
--- a/sys/dev/ic/bt485.c
+++ b/sys/dev/ic/bt485.c
@@ -46,6 +46,8 @@
#include <dev/ic/ramdac.h>
#include <dev/wscons/wsconsio.h>
+#include <dev/wscons/wsdisplayvar.h>
+#include <dev/rasops/rasops.h>
/*
* Functions exported via the RAMDAC configuration table.
@@ -247,8 +249,11 @@ bt485_init(rc)
/* Initial colormap: 0 is black, everything else is white */
data->cmap_r[0] = data->cmap_g[0] = data->cmap_b[0] = 0;
- for (i = 1; i < 256; i++)
- data->cmap_r[i] = data->cmap_g[i] = data->cmap_b[i] = 255;
+ for (i = 0; i < 256; i++) {
+ data->cmap_r[i] = rasops_cmap[3*i + 0];
+ data->cmap_g[i] = rasops_cmap[3*i + 1];
+ data->cmap_b[i] = rasops_cmap[3*i + 2];
+ }
bt485_update((void *)data);
}