diff options
| author | Simon Glass <[email protected]> | 2024-10-14 16:31:53 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2024-10-18 14:10:22 -0600 |
| commit | 52c19173dfa162868be792d61a2e48e4bb6e0112 (patch) | |
| tree | 88174729a91a9929c7b845814a9a54238d1e2e1c /drivers/video | |
| parent | 82c6ebae42e3462b8baf3e2a0e017f9ca18e81ac (diff) | |
video: Add a dark-grey console colour
This is useful for highlighting something with a black background, as
is needed with cedit when using a white-on-black console. Add this as
a new colour.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/video')
| -rw-r--r-- | drivers/video/video-uclass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 9823673f817..a5b3e898066 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -294,6 +294,9 @@ static const struct vid_rgb colours[VID_COLOUR_COUNT] = { { 0xff, 0x00, 0xff }, /* bright magenta */ { 0x00, 0xff, 0xff }, /* bright cyan */ { 0xff, 0xff, 0xff }, /* white */ + + /* an extra one for menus */ + { 0x40, 0x40, 0x40 }, /* dark gray */ }; u32 video_index_to_colour(struct video_priv *priv, enum colour_idx idx) |
