mirror of
				https://github.com/acidanthera/audk.git
				synced 2025-10-31 11:13:53 +01:00 
			
		
		
		
	Nt32Pkg/PlatformBootManagerLib: zero EFI_GRAPHICS_OUTPUT_BLT_PIXEL.Reserved
The PlatformBootManagerWaitCallback() function sets White.Reserved to 0xFF; it should be 0x00. Also, use a more compact form to assign the component fields. Suggested-by: Jordan Justen <jordan.l.justen@intel.com> Cc: Andrew Fish <afish@apple.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
		
							parent
							
								
									e79bed787d
								
							
						
					
					
						commit
						ef3216ebf3
					
				| @ -262,20 +262,20 @@ PlatformBootManagerWaitCallback ( | |||||||
|   UINT16          TimeoutRemain |   UINT16          TimeoutRemain | ||||||
|   ) |   ) | ||||||
| { | { | ||||||
|   EFI_GRAPHICS_OUTPUT_BLT_PIXEL Black; |   EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION Black; | ||||||
|   EFI_GRAPHICS_OUTPUT_BLT_PIXEL White; |   EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION White; | ||||||
|   UINT16                        Timeout; |   UINT16                              Timeout; | ||||||
| 
 | 
 | ||||||
|   Timeout = PcdGet16 (PcdPlatformBootTimeOut); |   Timeout = PcdGet16 (PcdPlatformBootTimeOut); | ||||||
| 
 | 
 | ||||||
|   Black.Blue = Black.Green = Black.Red = Black.Reserved = 0; |   Black.Raw = 0x00000000; | ||||||
|   White.Blue = White.Green = White.Red = White.Reserved = 0xFF; |   White.Raw = 0x00FFFFFF; | ||||||
| 
 | 
 | ||||||
|   BootLogoUpdateProgress ( |   BootLogoUpdateProgress ( | ||||||
|     White, |     White.Pixel, | ||||||
|     Black, |     Black.Pixel, | ||||||
|     L"Start boot option", |     L"Start boot option", | ||||||
|     White, |     White.Pixel, | ||||||
|     (Timeout - TimeoutRemain) * 100 / Timeout, |     (Timeout - TimeoutRemain) * 100 / Timeout, | ||||||
|     0 |     0 | ||||||
|     ); |     ); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user