summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanjeff <vanjeff>2013-10-09 08:02:37 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2013-10-09 08:02:37 +0000
commitfb6f5e9374a5c2c96ab4a31b08ae8fb9d14195bd (patch)
treeff9d0229b82bed96315e232c249735df51a77d38
parent7a4febb71a0067cd1a2b3300d6fc406c67c24913 (diff)
downloadedk2-fb6f5e9374a5c2c96ab4a31b08ae8fb9d14195bd.tar.gz
Sync patch r14758 from main trunk.
Restore the correct cursor status after finish creating the dialog. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14759 6f19259b-4bc3-4df7-8a09-765794883524
-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);
}
/**