mirror of https://github.com/acidanthera/audk.git
OvmfPkg/VirtioGpuDxe: 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
1d2558af76
commit
b4536e36c4
|
@ -273,8 +273,12 @@ GopInitialize (
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -49,3 +49,5 @@
|
|||
gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution
|
||||
|
|
Loading…
Reference in New Issue