]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/HiiDatabaseDxe/Font.c
MdeModulePkg/Database: Fix incorrect calculation of baseline in FontPackage
authorDandan Bi <dandan.bi@intel.com>
Wed, 8 Jun 2016 06:13:36 +0000 (14:13 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 15 Jun 2016 02:52:42 +0000 (10:52 +0800)
commit8f88f023fc59961973bb1ef121c7bee7b0a61975
tree87254711f0957239d60d13c7ab07d72f9e3a58f7
parent7e74fd570dd9f262c51994b4d256ced7ef41735d
MdeModulePkg/Database: Fix incorrect calculation of baseline in FontPackage

When adding font package, there exists the case that only have the
EFI_HII_GIBT_GLYPH_DEFAULT or EFI_HII_GIBT_GLYPHS_DEFAULT glyph block
and use the default cell info in font package fixed header. In this
case, we can't get the correct baseline now. This patch is to fix this
issue by recalculating the baseline when the glyph block type is
EFI_HII_GIBT_GLYPH_DEFAULT or EFI_HII_GIBT_GLYPHS_DEFAULT.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Universal/HiiDatabaseDxe/Font.c