mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
5d7f312635
commit
980f3026e5
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue