Move cursor before changing console attributes
This commit is contained in:
parent
1cdc1d3e54
commit
dcca4870cd
@ -894,6 +894,9 @@ BlpDrawBootMenuEntry(IN PXTBL_DIALOG_HANDLE Handle,
|
|||||||
{
|
{
|
||||||
UINT Index;
|
UINT Index;
|
||||||
|
|
||||||
|
/* Move cursor to the right position */
|
||||||
|
BlSetCursorPosition(5, 4 + Position);
|
||||||
|
|
||||||
/* Check whether this entry should be highlighted */
|
/* Check whether this entry should be highlighted */
|
||||||
if(Highlighted)
|
if(Highlighted)
|
||||||
{
|
{
|
||||||
@ -906,9 +909,6 @@ BlpDrawBootMenuEntry(IN PXTBL_DIALOG_HANDLE Handle,
|
|||||||
BlSetConsoleAttributes(EFI_TEXT_BGCOLOR_BLACK | EFI_TEXT_FGCOLOR_LIGHTGRAY);
|
BlSetConsoleAttributes(EFI_TEXT_BGCOLOR_BLACK | EFI_TEXT_FGCOLOR_LIGHTGRAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Move cursor to the right position */
|
|
||||||
BlSetCursorPosition(5, 4 + Position);
|
|
||||||
|
|
||||||
/* Clear menu entry */
|
/* Clear menu entry */
|
||||||
for(Index = 0; Index < Handle->Width - 4; Index++)
|
for(Index = 0; Index < Handle->Width - 4; Index++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user