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
This commit is contained in:
Dandan Bi 2015-05-21 07:44:59 +00:00 committed by dandanbi
parent 2d9cdfd86e
commit 8c9c60b662
1 changed files with 4 additions and 1 deletions

View File

@ -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 ++;