OcConsoleLib: Do not break console mode after changing resolution

This commit is contained in:
vit9696 2019-04-19 14:37:27 +03:00
parent be0cecafd6
commit 475d12bca2

View File

@ -389,10 +389,11 @@ SetConsoleResolution (
FreePool (HandleBuffer);
Status = gST->ConOut->SetMode (gST->ConOut, 0);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_WARN, "OCS: Mode set on ConOut failed after reconnect\n"));
}
//
// It is implementation defined, which console mode is used by ConOut.
// Assume the implementation chooses most sensible value based on GOP resolution.
// If it does not, there is a separate ConsoleMode param, which expands to SetConsoleMode.
//
} else {
DEBUG ((DEBUG_WARN, "OCS: Failed to find any text output handles\n"));
}