Update console mode setup to use PcdSetupConOutColumn and PcdSetupConOutRow which are specially for BIOS setup.
Signed-off-by: li-elvin Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12770 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1033,8 +1033,8 @@ GetConsoleOutMode (
|
||||
|
||||
ConOut = gST->ConOut;
|
||||
MaxMode = (UINTN) (ConOut->Mode->MaxMode);
|
||||
|
||||
CurrentCol = PcdGet32 (PcdConOutColumn);
|
||||
|
||||
CurrentCol = PcdGet32 (PcdSetupConOutColumn);
|
||||
CurrentRow = PcdGet32 (PcdSetupConOutRow);
|
||||
for (Mode = 0; Mode < MaxMode; Mode++) {
|
||||
Status = ConOut->QueryMode (ConOut, Mode, &Col, &Row);
|
||||
|
@@ -1345,8 +1345,8 @@ Var_UpdateConMode (
|
||||
|
||||
Status = gST->ConOut->QueryMode (gST->ConOut, Mode, &(ModeInfo.Column), &(ModeInfo.Row));
|
||||
if (!EFI_ERROR(Status)) {
|
||||
PcdSet32 (PcdConOutColumn, (UINT32) ModeInfo.Column);
|
||||
PcdSet32 (PcdConOutRow, (UINT32) ModeInfo.Row);
|
||||
PcdSet32 (PcdSetupConOutColumn, (UINT32) ModeInfo.Column);
|
||||
PcdSet32 (PcdSetupConOutRow, (UINT32) ModeInfo.Row);
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
Reference in New Issue
Block a user