mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 20:36:02 +01:00
efi_loader: reset colors before clearing screen
When resetting the text console the colors have to be set before clearing the screen. Otherwise the background color may be wrong. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
100de5e37d
commit
5c1037d578
@ -522,11 +522,11 @@ static efi_status_t EFIAPI efi_cout_reset(
|
||||
{
|
||||
EFI_ENTRY("%p, %d", this, extended_verification);
|
||||
|
||||
/* Clear screen */
|
||||
EFI_CALL(efi_cout_clear_screen(this));
|
||||
/* Set default colors */
|
||||
efi_con_mode.attribute = 0x07;
|
||||
printf(ESC "[0;37;40m");
|
||||
/* Clear screen */
|
||||
EFI_CALL(efi_cout_clear_screen(this));
|
||||
|
||||
return EFI_EXIT(EFI_SUCCESS);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user