]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Nt32Pkg/PlatformBootManagerLib: zero EFI_GRAPHICS_OUTPUT_BLT_PIXEL.Reserved
authorLaszlo Ersek <lersek@redhat.com>
Wed, 25 May 2016 22:51:27 +0000 (00:51 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 27 May 2016 09:22:17 +0000 (11:22 +0200)
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>
Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c

index 82f7647c7039beaec2b2b7ca7dc83573aa02ac5d..007e18a956c46e18f37df6830be4192e151f1652 100644 (file)
@@ -262,20 +262,20 @@ PlatformBootManagerWaitCallback (
   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