diff options
author | Toomas Soome <tsoome@me.com> | 2019-11-14 14:35:34 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-11-21 08:40:57 +0200 |
commit | 3128654191cf8267843c8a40c4e0f3ac65f599f1 (patch) | |
tree | 286ab922e23b94d8f3af388a942d022dd7691e96 /usr/src/common/font | |
parent | 62ce8e2e52946c2ebc855b02452650365c19eafc (diff) | |
download | illumos-joyent-3128654191cf8267843c8a40c4e0f3ac65f599f1.tar.gz |
11973 tem: we only can translate colors 0-7
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/common/font')
-rw-r--r-- | usr/src/common/font/font.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/common/font/font.c b/usr/src/common/font/font.c index 501e8ec934..3556f27cf8 100644 --- a/usr/src/common/font/font.c +++ b/usr/src/common/font/font.c @@ -48,9 +48,9 @@ /* ANSI color to sun color translation. */ /* BEGIN CSTYLED */ -/* Bk Rd Gr Br Bl Mg Cy Wh */ -const uint8_t dim_xlate[] = { 1, 5, 3, 7, 2, 6, 4, 8 }; -const uint8_t brt_xlate[] = { 9, 13, 11, 15, 10, 14, 12, 0 }; +/* Bk Rd Gr Br Bl Mg Cy Wh */ +const uint8_t dim_xlate[XLATE_NCOLORS] = { 1, 5, 3, 7, 2, 6, 4, 8 }; +const uint8_t brt_xlate[XLATE_NCOLORS] = { 9, 13, 11, 15, 10, 14, 12, 0 }; const uint8_t solaris_color_to_pc_color[16] = { pc_brt_white, /* 0 - brt_white */ |