From 980f3026e56ef7868962bbca386655f11c10fd33 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Wed, 9 Oct 2013 07:51:14 +0000 Subject: Restore the correct cursor status after finish creating the dialog. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14758 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c') 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); } /** -- cgit v1.2.3