]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
expo: Correct background colour
authorSimon Glass <sjg@chromium.org>
Mon, 2 Oct 2023 01:14:41 +0000 (19:14 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Nov 2023 03:04:00 +0000 (20:04 -0700)
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>
boot/expo.c

index 139d684f8e6e06a0f4a1d48920213c2def9281af..cadb6a0ad6e3b2424930ecadbbc7001f49729608 100644 (file)
@@ -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);