diff options
author | Simon Glass <sjg@chromium.org> | 2025-04-02 06:29:33 +1300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-02 13:40:25 -0600 |
commit | 3ad5f49b5db4337626004629842d3dea30467c92 (patch) | |
tree | 69750f930abdf9a1ea05df347db979eb535c489b /boot/expo.c | |
parent | fe2d4d4cef093d24da389fda29a556b15c84829b (diff) |
video: Make white-on-black a video-device property
The CONFIG_WHITE_ON_BLACK setting is hard-coded at build-time. It is
useful to be able to control this when showing menus.
Create a property to hold this information, using the CONFIG as the
initial value.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/expo.c')
-rw-r--r-- | boot/expo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/expo.c b/boot/expo.c index 786f665f53c..8ce645e5a8f 100644 --- a/boot/expo.c +++ b/boot/expo.c @@ -194,7 +194,7 @@ int expo_render(struct expo *exp) u32 colour; int ret; - back = CONFIG_IS_ENABLED(SYS_WHITE_ON_BLACK) ? VID_BLACK : VID_WHITE; + back = vid_priv->white_on_black ? VID_BLACK : VID_WHITE; colour = video_index_to_colour(vid_priv, back); ret = video_fill(dev, colour); if (ret) |