RePaintItems = TRUE;\r
}\r
\r
- //\r
- // Print want to select item\r
- //\r
- FirstItem = BootMenuData->ScrollBarControl.FirstItem;\r
- gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE | EFI_BACKGROUND_BLACK);\r
- String = HiiGetString (gStringPackHandle, BootMenuData->PtrTokens[WantSelectItem], NULL);\r
- PrintCol = StartCol + 1;\r
- PrintRow = StartRow + TITLE_TOKEN_COUNT + 2 + WantSelectItem - FirstItem;\r
- PrintStringAt (PrintCol, PrintRow, String);\r
- FreePool (String);\r
-\r
//\r
// if Want Select and selected item isn't the same and doesn't re-draw selectable\r
// items, clear select item\r
//\r
+ FirstItem = BootMenuData->ScrollBarControl.FirstItem;\r
if (WantSelectItem != BootMenuData->SelectItem && !RePaintItems) {\r
gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE | EFI_BACKGROUND_BLUE);\r
String = HiiGetString (gStringPackHandle, BootMenuData->PtrTokens[BootMenuData->SelectItem], NULL);\r
FreePool (String);\r
}\r
\r
+ //\r
+ // Print want to select item\r
+ //\r
+ gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE | EFI_BACKGROUND_BLACK);\r
+ String = HiiGetString (gStringPackHandle, BootMenuData->PtrTokens[WantSelectItem], NULL);\r
+ PrintCol = StartCol + 1;\r
+ PrintRow = StartRow + TITLE_TOKEN_COUNT + 2 + WantSelectItem - FirstItem;\r
+ PrintStringAt (PrintCol, PrintRow, String);\r
+ FreePool (String);\r
+\r
gST->ConOut->SetAttribute (gST->ConOut, SavedAttribute);\r
BootMenuData->SelectItem = WantSelectItem;\r
return EFI_SUCCESS;\r