mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
ArmVirtPkg/PlatformBootManagerLib: introduce the progress bar
ArmVirtPkg's Platform BDS has never had a progress bar. We can easily add one, by copying the PlatformBootManagerWaitCallback() function verbatim from Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c It can be tested by passing the following option to QEMU (5 seconds): -boot menu=on,splash-time=5000 Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
parent
2c8805bc95
commit
be266b1090
@ -573,4 +573,21 @@ PlatformBootManagerWaitCallback (
|
|||||||
UINT16 TimeoutRemain
|
UINT16 TimeoutRemain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION Black;
|
||||||
|
EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION White;
|
||||||
|
UINT16 Timeout;
|
||||||
|
|
||||||
|
Timeout = PcdGet16 (PcdPlatformBootTimeOut);
|
||||||
|
|
||||||
|
Black.Raw = 0x00000000;
|
||||||
|
White.Raw = 0x00FFFFFF;
|
||||||
|
|
||||||
|
BootLogoUpdateProgress (
|
||||||
|
White.Pixel,
|
||||||
|
Black.Pixel,
|
||||||
|
L"Start boot option",
|
||||||
|
White.Pixel,
|
||||||
|
(Timeout - TimeoutRemain) * 100 / Timeout,
|
||||||
|
0
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user