]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/CapsuleApp: Center bitmap at bottom of screen
authorMichael D Kinney <michael.d.kinney@intel.com>
Wed, 21 Mar 2018 20:21:10 +0000 (13:21 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Thu, 22 Mar 2018 03:55:27 +0000 (20:55 -0700)
commitbf9b044e67bcb685ffebfccbc73c5a81deea7c5b
tree933a09381da69dded7ed5384b6dd1944a020254b
parent845f7cfef2d61f31adc4fbd94bf51ce459785e6b
MdeModulePkg/CapsuleApp: Center bitmap at bottom of screen

https://bugzilla.tianocore.org/show_bug.cgi?id=907

When -G option is used to convert a BMP file to a UX capsule,
the bitmap is centered horizontally and placed in the lower
half of the screen below the boot logo.

This matches examples shown in the following pages:

https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/user-experience-for-uefi-firmware-updates
https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/boot-screen-components

Checks are also made to make sure the bitmap provided
fits in the current GOP mode.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
MdeModulePkg/Application/CapsuleApp/CapsuleApp.inf