Move cursor before changing console attributes
Builds / ExectOS (i686) (push) Successful in 38s Details
Builds / ExectOS (amd64) (push) Successful in 41s Details

This commit is contained in:
Rafal Kupiec 2024-03-28 14:06:52 +01:00
parent 1cdc1d3e54
commit dcca4870cd
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 3 deletions

View File

@ -894,6 +894,9 @@ BlpDrawBootMenuEntry(IN PXTBL_DIALOG_HANDLE Handle,
{
UINT Index;
/* Move cursor to the right position */
BlSetCursorPosition(5, 4 + Position);
/* Check whether this entry should be highlighted */
if(Highlighted)
{
@ -906,9 +909,6 @@ BlpDrawBootMenuEntry(IN PXTBL_DIALOG_HANDLE Handle,
BlSetConsoleAttributes(EFI_TEXT_BGCOLOR_BLACK | EFI_TEXT_FGCOLOR_LIGHTGRAY);
}
/* Move cursor to the right position */
BlSetCursorPosition(5, 4 + Position);
/* Clear menu entry */
for(Index = 0; Index < Handle->Width - 4; Index++)
{