mirror of
				https://gitlab.com/qemu-project/edk2.git
				synced 2025-10-30 07:56:39 +08:00 
			
		
		
		
	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:
		 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
						
							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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user