From b4f9a2237d8a400e2b2e64b8bfc248e805be495e Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 27 Jun 2023 20:11:03 -0600 Subject: [PATCH] UefiPayloadPkg: Show boot prompt as progress text This causes it to be centered at the bottom of the screen like other vendor's firmware instead of at the top left where the cursor is. Signed-off-by: Tim Crawford --- .../PlatformBootManager.c | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c index a4a49da0e9..addc7dbb1f 100644 --- a/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -297,6 +297,7 @@ PlatformBootManagerAfterConsole ( EFI_GRAPHICS_OUTPUT_BLT_PIXEL White; EDKII_PLATFORM_LOGO_PROTOCOL *PlatformLogo; EFI_STATUS Status; + CHAR16 *BootText = NULL; Black.Blue = Black.Green = Black.Red = Black.Reserved = 0; White.Blue = White.Green = White.Red = White.Reserved = 0xFF; @@ -317,20 +318,19 @@ PlatformBootManagerAfterConsole ( PlatformRegisterFvBootOption (&gUefiShellFileGuid, L"UEFI Shell", LOAD_OPTION_ACTIVE); if (FixedPcdGetBool (PcdBootManagerEscape)) { - Print ( - L"\n" - L" Esc or Down to enter Boot Manager Menu.\n" - L" ENTER to boot directly.\n" - L"\n" - ); + BootText = L"Press ESC for Boot Options/Settings, or SPACE for Pop!_OS Recovery"; } else { - Print ( - L"\n" - L" F2 or Down to enter Boot Manager Menu.\n" - L" ENTER to boot directly.\n" - L"\n" - ); + BootText = L"Press F2 for Boot Options/Settings, or SPACE for Pop!_OS Recovery"; } + + BootLogoUpdateProgress ( + White, + Black, + BootText, + White, + 0, + 0 + ); } /**