summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-16 05:09:36 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-16 05:09:36 +0000
commit85aa96cd54dadbc974bd1d44f15a8743c588c733 (patch)
tree299b0cbfae7dcee724b1d605c7ffbf4b07ba850c /MdeModulePkg
parentde4b64f714332d80e9f1e0ada42c1998b5fbb81c (diff)
downloadedk2-platforms-85aa96cd54dadbc974bd1d44f15a8743c588c733.tar.xz
Update select highlight menu logic when opcode is date/time
Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12720 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Ui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
index 4dd439521e..baf36a213b 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c
@@ -2485,6 +2485,10 @@ UiDisplayMenu (
if (Link != NewPos || Index > BottomRow || (Link == NewPos && SavedMenuOption->Row + SavedMenuOption->Skip - 1 > BottomRow)) {
//
+ // Find the MenuOption which has the skip value for Date/Time opcode.
+ //
+ AdjustDateAndTimePosition(FALSE, &NewPos);
+ //
// NewPos is not in the current page, simply scroll page so that NewPos is in the end of the page
//
SavedMenuOption = MENU_OPTION_FROM_LINK (NewPos);