mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 14:44:28 +02:00
When EDID comes from hardware INT10 and does not include 800x600, 640x480 and 1024x768, but INT10 supports these modes, add them into GOP mode.
Signed-off-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14225 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b2fdb17eb7
commit
1687559138
@ -1590,9 +1590,18 @@ BiosVideoCheckForVbe (
|
|||||||
Timing.HorizontalResolution = BiosVideoPrivate->VbeModeInformationBlock->XResolution;
|
Timing.HorizontalResolution = BiosVideoPrivate->VbeModeInformationBlock->XResolution;
|
||||||
Timing.VerticalResolution = BiosVideoPrivate->VbeModeInformationBlock->YResolution;
|
Timing.VerticalResolution = BiosVideoPrivate->VbeModeInformationBlock->YResolution;
|
||||||
if (!SearchEdidTiming (&ValidEdidTiming, &Timing)) {
|
if (!SearchEdidTiming (&ValidEdidTiming, &Timing)) {
|
||||||
|
//
|
||||||
|
// When EDID comes from INT10 call, EDID does not include 800x600, 640x480 and 1024x768,
|
||||||
|
// but INT10 can support these modes, we add them into GOP mode.
|
||||||
|
//
|
||||||
|
if ((BiosVideoPrivate->EdidDiscovered.SizeOfEdid != 0) &&
|
||||||
|
!((Timing.HorizontalResolution) == 1024 && (Timing.VerticalResolution == 768)) &&
|
||||||
|
!((Timing.HorizontalResolution) == 800 && (Timing.VerticalResolution == 600)) &&
|
||||||
|
!((Timing.HorizontalResolution) == 640 && (Timing.VerticalResolution == 480))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Select a reasonable mode to be set for current display mode
|
// Select a reasonable mode to be set for current display mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user