aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-10-01 19:14:41 -0600
committerSimon Glass <sjg@chromium.org>2023-11-14 20:04:00 -0700
commitcac91b0b728eca99a1f2216dab5fbe86e6578b65 (patch)
tree7016d7a05e1526c26b0bef62f8c71e51822cb9ef /boot
parent3fa53b9531c1db5e3be42014f2004786e9511f35 (diff)
downloadu-boot-cac91b0b728eca99a1f2216dab5fbe86e6578b65.zip
u-boot-cac91b0b728eca99a1f2216dab5fbe86e6578b65.tar.gz
u-boot-cac91b0b728eca99a1f2216dab5fbe86e6578b65.tar.bz2
expo: Correct background colour
Use the correct background colour when using white-on-black. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/expo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot/expo.c b/boot/expo.c
index 139d684..cadb6a0 100644
--- a/boot/expo.c
+++ b/boot/expo.c
@@ -190,10 +190,12 @@ int expo_render(struct expo *exp)
struct udevice *dev = exp->display;
struct video_priv *vid_priv = dev_get_uclass_priv(dev);
struct scene *scn = NULL;
+ enum colour_idx back;
u32 colour;
int ret;
- colour = video_index_to_colour(vid_priv, VID_WHITE);
+ back = CONFIG_IS_ENABLED(SYS_WHITE_ON_BLACK) ? VID_BLACK : VID_WHITE;
+ colour = video_index_to_colour(vid_priv, back);
ret = video_fill(dev, colour);
if (ret)
return log_msg_ret("fill", ret);