]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update the logic: After check the environment, calculate the new parameter and update it.
authorEric Dong <eric.dong@intel.com>
Mon, 20 Apr 2015 04:25:45 +0000 (04:25 +0000)
committerydong10 <ydong10@Edk2>
Mon, 20 Apr 2015 04:25:45 +0000 (04:25 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17188 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h

index 8e5d3074d2737148e464cdf1ce57dd4b86603c53..945c704882548c890135805c10a5256b2a705937 100644 (file)
@@ -1901,6 +1901,11 @@ FindTopMenu (
     }\r
     *SkipValue     = 0;\r
   }\r
+\r
+  //\r
+  // First enter to show the menu, update highlight info.\r
+  //\r
+  UpdateHighlightMenuInfo (*HighlightMenu, *TopOfScreen, *SkipValue);\r
 }\r
 \r
 /**\r
index 968d293afdd8c07cea309ecdf4165ed2e7b1a5d7..eeb9b2f3182525015a716f650c002dcdbbb8b502 100644 (file)
@@ -633,4 +633,19 @@ RefreshTimeOutProcess (
   IN  VOID         *Context\r
   );\r
 \r
+/**\r
+  Record the highlight menu and top of screen menu info.\r
+\r
+  @param  Highlight               The menu opton which is highlight.\r
+  @param  TopOfScreen             The menu opton which is at the top of the form.\r
+  @param  SkipValue               The skip line info for the top of screen menu.\r
+\r
+**/\r
+VOID\r
+UpdateHighlightMenuInfo (\r
+  IN  LIST_ENTRY                      *Highlight,\r
+  IN  LIST_ENTRY                      *TopOfScreen,\r
+  IN  UINTN                           SkipValue\r
+  );\r
+\r
 #endif\r