mirror of https://github.com/acidanthera/audk.git
remove console control protocol consuming in DrawImage(), caller should make sure current mode is graphics mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7568 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bc6b5892b0
commit
3f57706fa9
|
@ -59,7 +59,6 @@
|
|||
UefiRuntimeServicesTableLib
|
||||
|
||||
[Protocols]
|
||||
gEfiConsoleControlProtocolGuid ## CONSUMES
|
||||
gEfiDevicePathProtocolGuid ## SOMETIMES_CONSUMES
|
||||
gEfiHiiStringProtocolGuid ## PRODUCES
|
||||
gEfiHiiImageProtocolGuid |PcdSupportHiiImageProtocol ## PRODUCES
|
||||
|
|
|
@ -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
|
||||
);
|
||||
//
|
||||
// Caller should make sure the current UGA console is grarphic mode.
|
||||
//
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
Console->SetMode (Console, EfiConsoleControlScreenGraphics);
|
||||
//
|
||||
// Write the image directly to the output device specified by Screen.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue