summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2017-05-10 09:47:06 +0800
committerHao Wu <hao.a.wu@intel.com>2017-05-11 10:48:49 +0800
commitdf5914993c9d4db87e4132bcc3b88efb48db5c6e (patch)
treeb1a95402f2556a497cde50300d30f51f4f4e7c7d
parentbcd999d2377d1a34bb3b5c02e4206a8d149999a2 (diff)
downloadedk2-df5914993c9d4db87e4132bcc3b88efb48db5c6e.tar.gz
edk2-df5914993c9d4db87e4132bcc3b88efb48db5c6e.tar.bz2
edk2-df5914993c9d4db87e4132bcc3b88efb48db5c6e.zip
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 <eric.dong@intel.com> Cc: Liming Gao <liming.gao@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>
-rw-r--r--MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c2
1 files changed, 1 insertions, 1 deletions
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;