diff options
author | Heinrich Schuchardt | 2022-04-30 09:05:04 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2022-05-03 21:39:22 +0200 |
commit | 5c1037d57835eb1cbeb9c78069839a445f8ab86b (patch) | |
tree | dd6236f8258e218c2f4030ea35365f54d61d6da8 | |
parent | 100de5e37d130dcf8a2bef4e0b33d4e59179d061 (diff) |
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>
-rw-r--r-- | lib/efi_loader/efi_console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index ba68a150172..60a3fc85ac4 100644 --- a/lib/efi_loader/efi_console.c +++ b/lib/efi_loader/efi_console.c @@ -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); } |