1.retried graphics library class from MdePkg
2.retried graphics library instance from MdeModulePkg 3.Move EnableQuietBoot(), DisableQuietBoot() and LockKeyboards() into GenericBdsLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6691 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -217,10 +217,11 @@ SendForm (
|
||||
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest OPTIONAL
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
UI_MENU_SELECTION *Selection;
|
||||
UINTN Index;
|
||||
FORM_BROWSER_FORMSET *FormSet;
|
||||
EFI_STATUS Status;
|
||||
UI_MENU_SELECTION *Selection;
|
||||
UINTN Index;
|
||||
FORM_BROWSER_FORMSET *FormSet;
|
||||
EFI_CONSOLE_CONTROL_PROTOCOL *ConsoleControl;
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
ZeroMem (&gScreenDimensions, sizeof (EFI_SCREEN_DESCRIPTOR));
|
||||
@@ -282,7 +283,15 @@ SendForm (
|
||||
// Ensure we are in Text mode
|
||||
//
|
||||
gST->ConOut->SetAttribute (gST->ConOut, EFI_TEXT_ATTR (EFI_LIGHTGRAY, EFI_BLACK));
|
||||
DisableQuietBoot ();
|
||||
|
||||
Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, (VOID **) &ConsoleControl);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
//
|
||||
// Set console control to text mode.
|
||||
//
|
||||
ConsoleControl->SetMode (ConsoleControl, EfiConsoleControlScreenText);
|
||||
|
||||
for (Index = 0; Index < HandleCount; Index++) {
|
||||
Selection = AllocateZeroPool (sizeof (UI_MENU_SELECTION));
|
||||
|
@@ -30,10 +30,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#include <Protocol/HiiConfigRouting.h>
|
||||
#include <Protocol/HiiDatabase.h>
|
||||
#include <Protocol/HiiString.h>
|
||||
#include <Protocol/ConsoleControl.h>
|
||||
|
||||
#include <MdeModuleHii.h>
|
||||
|
||||
#include <Library/GraphicsLib.h>
|
||||
#include <Library/PrintLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
|
@@ -62,7 +62,6 @@
|
||||
BaseMemoryLib
|
||||
DebugLib
|
||||
PrintLib
|
||||
GraphicsLib
|
||||
IfrSupportLib
|
||||
HiiLib
|
||||
ExtendedHiiLib
|
||||
@@ -76,6 +75,7 @@
|
||||
gEfiHiiConfigRoutingProtocolGuid
|
||||
gEfiHiiDatabaseProtocolGuid
|
||||
gEfiUnicodeCollation2ProtocolGuid
|
||||
gEfiConsoleControlProtocolGuid
|
||||
|
||||
[FeaturePcd.common]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkHiiCompatibilitySupport
|
||||
|
Reference in New Issue
Block a user