diff options
author | 2001-04-20 21:58:11 +0000 | |
---|---|---|
committer | 2001-04-20 21:58:11 +0000 | |
commit | 2ec33c052057a2a9d981859267c60745fd7d4df6 (patch) | |
tree | f9866d82a2aabd360f00dfd7bcb1ffe9dde3f826 | |
parent | update description of the -f option and reword the text about expire. (diff) | |
download | wireguard-openbsd-2ec33c052057a2a9d981859267c60745fd7d4df6.tar.xz wireguard-openbsd-2ec33c052057a2a9d981859267c60745fd7d4df6.zip |
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@
-rw-r--r-- | sys/dev/ic/bt463.c | 8 | ||||
-rw-r--r-- | sys/dev/ic/bt485.c | 9 |
2 files changed, 12 insertions, 5 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: * 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); } |