mirror of https://github.com/acidanthera/audk.git
OvmfPkg/QemuVideoDxe: set SetupVideoResolution too
Set both PcdVideo*Resolution and PcdSetupVideo*Resolution PCDs. This avoids pointless video mode changes when entering and leaving the firmware setup application. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
2f5db44fdd
commit
1d2558af76
|
@ -367,8 +367,12 @@ QemuVideoBochsEdid (
|
|||
if (PcdGet8 (PcdVideoResolutionSource) == 0) {
|
||||
Status = PcdSet32S (PcdVideoHorizontalResolution, *XRes);
|
||||
ASSERT_RETURN_ERROR (Status);
|
||||
Status = PcdSet32S (PcdSetupVideoHorizontalResolution, *XRes);
|
||||
ASSERT_RETURN_ERROR (Status);
|
||||
Status = PcdSet32S (PcdVideoVerticalResolution, *YRes);
|
||||
ASSERT_RETURN_ERROR (Status);
|
||||
Status = PcdSet32S (PcdSetupVideoVerticalResolution, *YRes);
|
||||
ASSERT_RETURN_ERROR (Status);
|
||||
Status = PcdSet8S (PcdVideoResolutionSource, 2);
|
||||
ASSERT_RETURN_ERROR (Status);
|
||||
}
|
||||
|
|
|
@ -65,3 +65,5 @@
|
|||
gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution
|
||||
|
|
Loading…
Reference in New Issue