mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue