mirror of https://github.com/acidanthera/audk.git
Set graphic mode if graphic mode is not same with the one which GraphicsConsole driver find by itself.
Signed-off-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com> Reviewed-by: Tian Hot <hot.tian@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14023 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
51f65b3739
commit
c84f048224
|
@ -497,6 +497,19 @@ GraphicsConsoleControllerDriverStart (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (ModeNumber != Private->GraphicsOutput->Mode->Mode) {
|
||||||
|
//
|
||||||
|
// Current graphics mode is not set or is not set to the mode which we has found,
|
||||||
|
// set the new graphic mode.
|
||||||
|
//
|
||||||
|
Status = Private->GraphicsOutput->SetMode (Private->GraphicsOutput, ModeNumber);
|
||||||
|
if (EFI_ERROR (Status)) {
|
||||||
|
//
|
||||||
|
// The mode set operation failed
|
||||||
|
//
|
||||||
|
goto Error;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (FeaturePcdGet (PcdUgaConsumeSupport)) {
|
} else if (FeaturePcdGet (PcdUgaConsumeSupport)) {
|
||||||
//
|
//
|
||||||
// At first try to set user-defined resolution
|
// At first try to set user-defined resolution
|
||||||
|
|
Loading…
Reference in New Issue