diff options
author | Dandan Bi <dandan.bi@intel.com> | 2015-05-21 07:44:59 +0000 |
---|---|---|
committer | dandanbi <dandanbi@Edk2> | 2015-05-21 07:44:59 +0000 |
commit | 8c9c60b66224364217f80ca56a0742c26832cc45 (patch) | |
tree | c15008f69532bd19ac873edbb02654446d96797e /MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c | |
parent | 2d9cdfd86e3a2c2e3f4c58eeca3c66d59a601aca (diff) | |
download | edk2-platforms-8c9c60b66224364217f80ca56a0742c26832cc45.tar.xz |
MdeModulePkg:fix more than one arrow shows for one goto menu
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17492 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c')
-rw-r--r-- | MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c index 945c704882..df39e9f28d 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c @@ -2296,6 +2296,7 @@ DisplayOneMenu ( UINTN Temp3;
EFI_STATUS Status;
UINTN Row;
+ BOOLEAN IsProcessingFirstRow;
UINTN Col;
UINTN PromptLineNum;
UINTN OptionLineNum;
@@ -2310,6 +2311,7 @@ DisplayOneMenu ( PromptLineNum = 0;
OptionLineNum = 0;
MaxRow = 0;
+ IsProcessingFirstRow = TRUE;
//
// Set default color.
@@ -2413,7 +2415,7 @@ DisplayOneMenu ( //
PrintStringAtWithWidth (BeginCol, Row, L"", SkipWidth);
- if (Statement->OpCode->OpCode == EFI_IFR_REF_OP && MenuOption->Col >= 2) {
+ if (Statement->OpCode->OpCode == EFI_IFR_REF_OP && MenuOption->Col >= 2 && IsProcessingFirstRow) {
//
// Print Arrow for Goto button.
//
@@ -2422,6 +2424,7 @@ DisplayOneMenu ( Row,
GEOMETRICSHAPE_RIGHT_TRIANGLE
);
+ IsProcessingFirstRow = FALSE;
}
DisplayMenuString (MenuOption, MenuOption->Col, Row, OutputString, PromptWidth + AdjustValue, Highlight);
PromptLineNum ++;
|