Revision: 14758
http://sourceforge.net/p/edk2/code/14758
Author: ydong10
Date: 2013-10-09 07:51:14 +0000 (Wed, 09 Oct 2013)
Log Message:
-----------
Restore the correct cursor status after finish creating the dialog.
Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
Modified:
trunk/edk2/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
2013-10-09 05:39:51 UTC (rev 14757)
+++ trunk/edk2/MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.c
2013-10-09 07:51:14 UTC (rev 14758)
@@ -420,6 +420,7 @@
UINTN DimensionsWidth;
UINTN DimensionsHeight;
UINTN CurrentAttribute;
+ BOOLEAN CursorVisible;
//
// If screen dimension info is not ready, get it from console.
@@ -453,7 +454,8 @@
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 @@
}
gST->ConOut->SetAttribute (gST->ConOut, CurrentAttribute);
- gST->ConOut->EnableCursor (gST->ConOut, TRUE);
+ gST->ConOut->EnableCursor (gST->ConOut, CursorVisible);
}
/**
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits