summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2015-04-20 04:25:45 +0000
committerydong10 <ydong10@Edk2>2015-04-20 04:25:45 +0000
commitab2cf8eabb1e737697f910de94473f5eddeaede4 (patch)
treec931130186210eadaa65d9e6b0cc4411eeb939eb /MdeModulePkg/Universal
parente8b4d9f4aa97f80668a66d5ca4d6e25579a68f5e (diff)
downloadedk2-platforms-ab2cf8eabb1e737697f910de94473f5eddeaede4.tar.xz
Update the logic: After check the environment, calculate the new parameter and update it.
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
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c5
-rw-r--r--MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h15
2 files changed, 20 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
index 8e5d3074d2..945c704882 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c
@@ -1901,6 +1901,11 @@ FindTopMenu (
}
*SkipValue = 0;
}
+
+ //
+ // First enter to show the menu, update highlight info.
+ //
+ UpdateHighlightMenuInfo (*HighlightMenu, *TopOfScreen, *SkipValue);
}
/**
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h
index 968d293afd..eeb9b2f318 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h
@@ -633,4 +633,19 @@ RefreshTimeOutProcess (
IN VOID *Context
);
+/**
+ Record the highlight menu and top of screen menu info.
+
+ @param Highlight The menu opton which is highlight.
+ @param TopOfScreen The menu opton which is at the top of the form.
+ @param SkipValue The skip line info for the top of screen menu.
+
+**/
+VOID
+UpdateHighlightMenuInfo (
+ IN LIST_ENTRY *Highlight,
+ IN LIST_ENTRY *TopOfScreen,
+ IN UINTN SkipValue
+ );
+
#endif