diff options
-rw-r--r-- | MdeModulePkg/Universal/BdsDxe/FrontPage.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/FrontPage.c b/MdeModulePkg/Universal/BdsDxe/FrontPage.c index 46355fabd7..914f177ed6 100644 --- a/MdeModulePkg/Universal/BdsDxe/FrontPage.c +++ b/MdeModulePkg/Universal/BdsDxe/FrontPage.c @@ -887,12 +887,16 @@ PlatformBdsEnterFrontPage ( Status = ShowProgress (TimeoutDefault);
gBS->RaiseTPL (TPL_APPLICATION);
+ //
+ // Ensure screen is clear when switch Console from Graphics mode to Text mode
+ //
+ gST->ConOut->EnableCursor (gST->ConOut, TRUE);
+ gST->ConOut->ClearScreen (gST->ConOut);
+
if (EFI_ERROR (Status)) {
//
// Timeout or user press enter to continue
//
- gST->ConOut->EnableCursor (gST->ConOut, TRUE);
- gST->ConOut->ClearScreen (gST->ConOut);
goto Exit;
}
}
|