diff options
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf | 1 | ||||
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/Image.c | 14 |
2 files changed, 3 insertions, 12 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf b/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf index a0d34a31b9..5007c58375 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf @@ -59,7 +59,6 @@ UefiRuntimeServicesTableLib
[Protocols]
- gEfiConsoleControlProtocolGuid ## CONSUMES
gEfiDevicePathProtocolGuid ## SOMETIMES_CONSUMES
gEfiHiiStringProtocolGuid ## PRODUCES
gEfiHiiImageProtocolGuid |PcdSupportHiiImageProtocol ## PRODUCES
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Image.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Image.c index dc543b80e1..8c74e8e424 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Image.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Image.c @@ -1233,7 +1233,6 @@ HiiDrawImage ( UINTN OffsetY2;
EFI_FONT_DISPLAY_INFO *FontInfo;
UINTN Index;
- EFI_CONSOLE_CONTROL_PROTOCOL *Console;
if (This == NULL || Image == NULL || Blt == NULL) {
return EFI_INVALID_PARAMETER;
@@ -1323,17 +1322,10 @@ HiiDrawImage ( // Draw the image to existing bitmap or screen depending on flag.
//
if ((Flags & EFI_HII_DIRECT_TO_SCREEN) == EFI_HII_DIRECT_TO_SCREEN) {
- Status = gBS->LocateProtocol (
- &gEfiConsoleControlProtocolGuid,
- NULL,
- (VOID **) &Console
- );
-
- if (EFI_ERROR (Status)) {
- return Status;
- }
+ //
+ // Caller should make sure the current UGA console is grarphic mode.
+ //
- Console->SetMode (Console, EfiConsoleControlScreenGraphics);
//
// Write the image directly to the output device specified by Screen.
//
|