From d2970bbc1d88dbde480e7eef57f3ddcedd39ad08 Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Tue, 31 May 2016 17:52:19 +0800 Subject: 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 Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong Reviewed-by: Liming Gao --- MdeModulePkg/Universal/HiiDatabaseDxe/Font.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'MdeModulePkg/Universal') 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; -- cgit v1.2.3