Fix the issue that the GOP produced by ConSplitter requires SetMode before GetMode, otherwise EFI_NOT_STARTED is returned from GetMode.
Signed-off-by: niruiyu Reviewed-by: xdu2 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11815 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
never removed. Such design ensures sytem function well during none console
|
||||
device situation.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -169,7 +169,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED TEXT_OUT_SPLITTER_PRIVATE_DATA mConOut = {
|
||||
(EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *) NULL,
|
||||
0,
|
||||
0,
|
||||
TRUE,
|
||||
|
||||
0,
|
||||
(TEXT_OUT_AND_GOP_DATA *) NULL,
|
||||
@@ -225,7 +224,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED TEXT_OUT_SPLITTER_PRIVATE_DATA mStdErr = {
|
||||
(EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *) NULL,
|
||||
0,
|
||||
0,
|
||||
TRUE,
|
||||
|
||||
0,
|
||||
(TEXT_OUT_AND_GOP_DATA *) NULL,
|
||||
@@ -2832,9 +2830,7 @@ Done:
|
||||
|
||||
//
|
||||
// Force GraphicsOutput mode to be set,
|
||||
// regardless whether the console is in EfiConsoleControlScreenGraphics or EfiConsoleControlScreenText mode
|
||||
//
|
||||
Private->HardwareNeedsStarting = TRUE;
|
||||
|
||||
Mode = &Private->GraphicsOutputModeBuffer[CurrentIndex];
|
||||
if ((GraphicsOutput != NULL) &&
|
||||
|
Reference in New Issue
Block a user