mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
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>
This commit is contained in:
parent
3fa53b9531
commit
cac91b0b72
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue