mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
OvmfPkg/PlatformDxe: 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
b4536e36c4
commit
fde034447f
@ -851,12 +851,24 @@ ExecutePlatformConfig (
|
|||||||
);
|
);
|
||||||
ASSERT_RETURN_ERROR (PcdStatus);
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
|
|
||||||
|
PcdStatus = PcdSet32S (
|
||||||
|
PcdSetupVideoHorizontalResolution,
|
||||||
|
PlatformConfig.HorizontalResolution
|
||||||
|
);
|
||||||
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
|
|
||||||
PcdStatus = PcdSet32S (
|
PcdStatus = PcdSet32S (
|
||||||
PcdVideoVerticalResolution,
|
PcdVideoVerticalResolution,
|
||||||
PlatformConfig.VerticalResolution
|
PlatformConfig.VerticalResolution
|
||||||
);
|
);
|
||||||
ASSERT_RETURN_ERROR (PcdStatus);
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
|
|
||||||
|
PcdStatus = PcdSet32S (
|
||||||
|
PcdSetupVideoVerticalResolution,
|
||||||
|
PlatformConfig.VerticalResolution
|
||||||
|
);
|
||||||
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
|
|
||||||
PcdStatus = PcdSet8S (PcdVideoResolutionSource, 1);
|
PcdStatus = PcdSet8S (PcdVideoResolutionSource, 1);
|
||||||
ASSERT_RETURN_ERROR (PcdStatus);
|
ASSERT_RETURN_ERROR (PcdStatus);
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
[Pcd]
|
[Pcd]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution
|
||||||
gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource
|
gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user