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>
UINT16 TimeoutRemain\r
)\r
{\r
- EFI_GRAPHICS_OUTPUT_BLT_PIXEL Black;\r
- EFI_GRAPHICS_OUTPUT_BLT_PIXEL White;\r
- UINT16 Timeout;\r
+ EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION Black;\r
+ EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION White;\r
+ UINT16 Timeout;\r
\r
Timeout = PcdGet16 (PcdPlatformBootTimeOut);\r
\r
- Black.Blue = Black.Green = Black.Red = Black.Reserved = 0;\r
- White.Blue = White.Green = White.Red = White.Reserved = 0xFF;\r
+ Black.Raw = 0x00000000;\r
+ White.Raw = 0x00FFFFFF;\r
\r
BootLogoUpdateProgress (\r
- White,\r
- Black,\r
+ White.Pixel,\r
+ Black.Pixel,\r
L"Start boot option",\r
- White,\r
+ White.Pixel,\r
(Timeout - TimeoutRemain) * 100 / Timeout,\r
0\r
);\r