diff options
author | Dandan Bi <dandan.bi@intel.com> | 2016-05-31 17:52:19 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-06-06 14:08:31 +0800 |
commit | d2970bbc1d88dbde480e7eef57f3ddcedd39ad08 (patch) | |
tree | 6b6b57dba9e0731b75a1efa834d5575764d4ab5a /MdeModulePkg/Universal | |
parent | 0672c2cdfebd35af3e68fe0b54408852bf314759 (diff) | |
download | edk2-platforms-d2970bbc1d88dbde480e7eef57f3ddcedd39ad08.tar.xz |
MdeModulePkg/HiiDatabase: Remove the incorrect calculation of font baseline
When add Font Package, the cell in EFI_HII_FONT_PACKAGE_HDR
contains the measurement of the widest and tallest characters
in the font. The measurement may be not absolutely correct,
so when use this cell information to calculate the baseline may
cause incorrect result. Besides this calculation is not necessary.
So remove it now.
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>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/Font.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c index 5d31f7513f..5ecd6bd4a1 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c @@ -704,10 +704,6 @@ FindGlyphBlock ( (UINT8 *) FontPackage->FontPkgHdr + 3 * sizeof (UINT32),
sizeof (EFI_HII_GLYPH_INFO)
);
- BaseLine = (UINT16) (LocalCell.Height + LocalCell.OffsetY);
- if (MinOffsetY > LocalCell.OffsetY) {
- MinOffsetY = LocalCell.OffsetY;
- }
}
BlockPtr = FontPackage->GlyphBlock;
|