mirror of
https://xff.cz/git/u-boot/
synced 2025-10-01 15:31:27 +02:00
efi_loader: fix SetAttribute()
The SetAttribute() service and the Reset() service of the simple text output protocol must update the attribute value in the mode information. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -341,6 +341,7 @@ static efi_status_t EFIAPI efi_cout_set_attribute(
|
|||||||
|
|
||||||
EFI_ENTRY("%p, %lx", this, attribute);
|
EFI_ENTRY("%p, %lx", this, attribute);
|
||||||
|
|
||||||
|
efi_con_mode.attribute = attribute;
|
||||||
if (attribute)
|
if (attribute)
|
||||||
printf(ESC"[%u;%u;%um", bold, color[fg].fg, color[bg].bg);
|
printf(ESC"[%u;%u;%um", bold, color[fg].fg, color[bg].bg);
|
||||||
else
|
else
|
||||||
@@ -384,6 +385,7 @@ static efi_status_t EFIAPI efi_cout_reset(
|
|||||||
/* Clear screen */
|
/* Clear screen */
|
||||||
EFI_CALL(efi_cout_clear_screen(this));
|
EFI_CALL(efi_cout_clear_screen(this));
|
||||||
/* Set default colors */
|
/* Set default colors */
|
||||||
|
efi_con_mode.attribute = 0x07;
|
||||||
printf(ESC "[0;37;40m");
|
printf(ESC "[0;37;40m");
|
||||||
|
|
||||||
return EFI_EXIT(EFI_SUCCESS);
|
return EFI_EXIT(EFI_SUCCESS);
|
||||||
|
Reference in New Issue
Block a user