From: Dandan Bi Date: Wed, 10 May 2017 01:47:06 +0000 (+0800) Subject: MdeModulePkg/FormDisplay: Make the LineWidth of option consistent X-Git-Tag: edk2-stable201903~4054 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=df5914993c9d4db87e4132bcc3b88efb48db5c6e MdeModulePkg/FormDisplay: Make the LineWidth of option consistent REF: https://bugzilla.tianocore.org/show_bug.cgi?id=529 LineWidth of option in funcrion UpdateSkipInfoForMenu and DisplayOneMenu are inconsistent. Now fix this issue to avoid incorrect UI display. Cc: Eric Dong Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong --- diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c index e1ac5a3223..dc4ae4bda1 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c @@ -877,7 +877,7 @@ UpdateSkipInfoForMenu ( CHAR16 *OutputString; UINT16 GlyphWidth; - Width = (UINT16) gOptionBlockWidth; + Width = (UINT16) gOptionBlockWidth - 1; GlyphWidth = 1; Row = 1;