mirror of
				https://gitlab.com/qemu-project/edk2.git
				synced 2025-10-30 07:56:39 +08: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:
		 Gerd Hoffmann
					Gerd Hoffmann
				
			
				
					committed by
					
						![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
			
				
	
			
			
			![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
						parent
						
							b4536e36c4
						
					
				
				
					commit
					fde034447f
				
			| @ -851,12 +851,24 @@ ExecutePlatformConfig ( | ||||
|                   ); | ||||
|     ASSERT_RETURN_ERROR (PcdStatus); | ||||
|  | ||||
|     PcdStatus = PcdSet32S ( | ||||
|                   PcdSetupVideoHorizontalResolution, | ||||
|                   PlatformConfig.HorizontalResolution | ||||
|                   ); | ||||
|     ASSERT_RETURN_ERROR (PcdStatus); | ||||
|  | ||||
|     PcdStatus = PcdSet32S ( | ||||
|                   PcdVideoVerticalResolution, | ||||
|                   PlatformConfig.VerticalResolution | ||||
|                   ); | ||||
|     ASSERT_RETURN_ERROR (PcdStatus); | ||||
|  | ||||
|     PcdStatus = PcdSet32S ( | ||||
|                   PcdSetupVideoVerticalResolution, | ||||
|                   PlatformConfig.VerticalResolution | ||||
|                   ); | ||||
|     ASSERT_RETURN_ERROR (PcdStatus); | ||||
|  | ||||
|     PcdStatus = PcdSet8S (PcdVideoResolutionSource, 1); | ||||
|     ASSERT_RETURN_ERROR (PcdStatus); | ||||
|   } | ||||
|  | ||||
| @ -47,6 +47,8 @@ | ||||
| [Pcd] | ||||
|   gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution | ||||
|   gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution | ||||
|   gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution | ||||
|   gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution | ||||
|   gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource | ||||
|  | ||||
| [Protocols] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user