Revision: 17492
          http://sourceforge.net/p/edk2/code/17492
Author:   dandanbi
Date:     2015-05-21 07:44:59 +0000 (Thu, 21 May 2015)
Log Message:
-----------
MdeModulePkg:fix more than one arrow shows for one goto menu

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <[email protected]>
Reviewed-by: Eric Dong <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c

Modified: trunk/edk2/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c    
2015-05-21 07:02:51 UTC (rev 17491)
+++ trunk/edk2/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c    
2015-05-21 07:44:59 UTC (rev 17492)
@@ -2296,6 +2296,7 @@
   UINTN                           Temp3;
   EFI_STATUS                      Status;
   UINTN                           Row;
+  BOOLEAN                         IsProcessingFirstRow;
   UINTN                           Col;
   UINTN                           PromptLineNum;
   UINTN                           OptionLineNum;
@@ -2310,6 +2311,7 @@
   PromptLineNum = 0;
   OptionLineNum = 0;
   MaxRow        = 0;
+  IsProcessingFirstRow = TRUE;
 
   //
   // Set default color.
@@ -2413,7 +2415,7 @@
         //
         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 @@
             Row,
             GEOMETRICSHAPE_RIGHT_TRIANGLE
             );
+          IsProcessingFirstRow = FALSE;
         }
         DisplayMenuString (MenuOption, MenuOption->Col, Row, OutputString, 
PromptWidth + AdjustValue, Highlight);
         PromptLineNum ++;


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to