summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/CustomizedDisplayLib
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2013-10-09 07:51:14 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2013-10-09 07:51:14 +0000
commit980f3026e56ef7868962bbca386655f11c10fd33 (patch)
tree3ba83895e0cace86ac7df1fd57f4fed807cf8651 /MdeModulePkg/Library/CustomizedDisplayLib
parent5d7f312635c8c6580e80868b2a2d7dd971ac7f88 (diff)
downloadedk2-platforms-980f3026e56ef7868962bbca386655f11c10fd33.tar.xz
Restore the correct cursor status after finish creating the dialog.
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@14758 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/CustomizedDisplayLib')
-rw-r--r--MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c b/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
index 4328761642..92f3a43a77 100644
--- a/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
+++ b/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
@@ -420,6 +420,7 @@ CreateDialog (
UINTN DimensionsWidth;
UINTN DimensionsHeight;
UINTN CurrentAttribute;
+ BOOLEAN CursorVisible;
//
// If screen dimension info is not ready, get it from console.
@@ -453,7 +454,8 @@ CreateDialog (
LargestString = DimensionsWidth - 2;
}
- CurrentAttribute = gST->ConOut->Mode->Attribute;
+ CurrentAttribute = gST->ConOut->Mode->Attribute;
+ CursorVisible = gST->ConOut->Mode->CursorVisible;
gST->ConOut->EnableCursor (gST->ConOut, FALSE);
gST->ConOut->SetAttribute (gST->ConOut, GetPopupColor ());
@@ -535,7 +537,7 @@ CreateDialog (
}
gST->ConOut->SetAttribute (gST->ConOut, CurrentAttribute);
- gST->ConOut->EnableCursor (gST->ConOut, TRUE);
+ gST->ConOut->EnableCursor (gST->ConOut, CursorVisible);
}
/**