mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
Choose best console mode first by height, then width
This commit is contained in:
parent
1db9b51864
commit
bda0beecd0
@ -174,8 +174,8 @@ VOID egDumpSetConsoleVideoModes(VOID)
|
||||
MsgLog(" - [%02llu]: %llux%llu%ls\n", i, Width, Height, (i-1==(UINTN)gST->ConOut->Mode->Mode)?L" (current mode)":L"");
|
||||
}
|
||||
// Select highest mode (-1) or lowest mode (-2) as/if requested
|
||||
if ((GlobalConfig.ConsoleMode == -1 && (BestMode == 0 || Width > BestWidth || (Width == BestWidth && Height > BestHeight))) ||
|
||||
(GlobalConfig.ConsoleMode == -2 && (BestMode == 0 || Width < BestWidth || (Width == BestWidth && Height < BestHeight)))) {
|
||||
if ((GlobalConfig.ConsoleMode == -1 && (BestMode == 0 || Height > BestHeight || (Height == BestHeight && Width > BestWidth))) ||
|
||||
(GlobalConfig.ConsoleMode == -2 && (BestMode == 0 || Height < BestHeight || (Height == BestHeight && Width < BestWidth)))) {
|
||||
BestMode = i;
|
||||
BestWidth = Width;
|
||||
BestHeight = Height;
|
||||
|
Loading…
Reference in New Issue
Block a user