summaryrefslogtreecommitdiff
path: root/sys/dev/ic/bt463.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/bt463.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/bt463.c')
-rw-r--r--sys/dev/ic/bt463.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ic/bt463.c b/sys/dev/ic/bt463.c
index 32f9dda9080..7cfc64c58bf 100644
--- a/sys/dev/ic/bt463.c
+++ b/sys/dev/ic/bt463.c
@@ -303,9 +303,11 @@ bt463_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 = 1; 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];
+ }
/* Initialize the window type table:
*