mirror of https://github.com/acidanthera/audk.git
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:
parent
2d9cdfd86e
commit
8c9c60b662
|
@ -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 ++;
|
||||
|
|
Loading…
Reference in New Issue