mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
remove clean console control protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7919 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1e976d75f1
commit
6c822f41fc
@ -550,33 +550,14 @@ ConSpliterGraphicsOutputBlt (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
EFI_STATUS ReturnStatus = EFI_DEVICE_ERROR;
|
||||||
TEXT_OUT_SPLITTER_PRIVATE_DATA *Private;
|
TEXT_OUT_SPLITTER_PRIVATE_DATA *Private;
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
EFI_STATUS ReturnStatus;
|
|
||||||
EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput;
|
EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput;
|
||||||
EFI_UGA_DRAW_PROTOCOL *UgaDraw;
|
EFI_UGA_DRAW_PROTOCOL *UgaDraw;
|
||||||
|
|
||||||
Private = GRAPHICS_OUTPUT_SPLITTER_PRIVATE_DATA_FROM_THIS (This);
|
Private = GRAPHICS_OUTPUT_SPLITTER_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
//
|
|
||||||
// Sync up DevNull GOP device
|
|
||||||
//
|
|
||||||
ReturnStatus = DevNullGraphicsOutputBlt (
|
|
||||||
Private,
|
|
||||||
BltBuffer,
|
|
||||||
BltOperation,
|
|
||||||
SourceX,
|
|
||||||
SourceY,
|
|
||||||
DestinationX,
|
|
||||||
DestinationY,
|
|
||||||
Width,
|
|
||||||
Height,
|
|
||||||
Delta
|
|
||||||
);
|
|
||||||
|
|
||||||
if (Private->ConsoleOutputMode != EfiConsoleControlScreenGraphics) {
|
|
||||||
return ReturnStatus;
|
|
||||||
}
|
|
||||||
//
|
//
|
||||||
// return the worst status met
|
// return the worst status met
|
||||||
//
|
//
|
||||||
|
@ -213,7 +213,6 @@ SendForm (
|
|||||||
UI_MENU_SELECTION *Selection;
|
UI_MENU_SELECTION *Selection;
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
FORM_BROWSER_FORMSET *FormSet;
|
FORM_BROWSER_FORMSET *FormSet;
|
||||||
EFI_CONSOLE_CONTROL_PROTOCOL *ConsoleControl;
|
|
||||||
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
ZeroMem (&gScreenDimensions, sizeof (EFI_SCREEN_DESCRIPTOR));
|
ZeroMem (&gScreenDimensions, sizeof (EFI_SCREEN_DESCRIPTOR));
|
||||||
@ -276,15 +275,6 @@ SendForm (
|
|||||||
//
|
//
|
||||||
gST->ConOut->SetAttribute (gST->ConOut, EFI_TEXT_ATTR (EFI_LIGHTGRAY, EFI_BLACK));
|
gST->ConOut->SetAttribute (gST->ConOut, EFI_TEXT_ATTR (EFI_LIGHTGRAY, EFI_BLACK));
|
||||||
|
|
||||||
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++) {
|
for (Index = 0; Index < HandleCount; Index++) {
|
||||||
Selection = AllocateZeroPool (sizeof (UI_MENU_SELECTION));
|
Selection = AllocateZeroPool (sizeof (UI_MENU_SELECTION));
|
||||||
ASSERT (Selection != NULL);
|
ASSERT (Selection != NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user