PlatformBootManagerLib: clear screen after progress
authorBigfootACA <bigfoot@classfun.cn>
星期天, 30 Jan 2022 19:47:11 +0000 (03:47 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期天, 30 Jan 2022 19:47:11 +0000 (03:47 +0800)
sdm845Pkg/Library/PlatformBootManagerLib/PlatformBm.c

index b4e40773c2ec79d559c1177f29ab148752dff096..c403727bb0d16ebf5379398f427b65f99180f943 100644 (file)
@@ -714,6 +714,12 @@ VOID EFIAPI PlatformBootManagerWaitCallback(UINT16 TimeoutRemain)
 
   Timeout = PcdGet16(PcdPlatformBootTimeOut);
 
+  if (Timeout != 0 && TimeoutRemain <= 0) {
+    gST->ConOut->ClearScreen(gST->ConOut);
+    BootLogoEnableLogo ();
+    return;
+  }
+
   Black.Raw = 0x00000000;
   White.Raw = 0x00FFFFFF;