]> code.delx.au - refind/commitdiff
Fixed bug that caused "label" option to "hideui" token to be ignored.
authorsrs5694 <srs5694@users.sourceforge.net>
Sun, 27 Jan 2013 23:49:21 +0000 (18:49 -0500)
committersrs5694 <srs5694@users.sourceforge.net>
Sun, 27 Jan 2013 23:49:21 +0000 (18:49 -0500)
refind/menu.c

index 2471176d31c2dfa54c1715ec1687b23bbc160ddd..668b646838c621be6c70bf22fc2f6530d560a3f1 100644 (file)
@@ -904,11 +904,12 @@ static VOID PaintAll(IN REFIT_MENU_SCREEN *Screen, IN SCROLL_STATE *State, UINTN
          DrawMainMenuEntry(Screen->Entries[i], (i == State->CurrentSelection) ? TRUE : FALSE, itemPosX[i], row1PosY);
       }
    }
-   if (!(GlobalConfig.HideUIFlags & HIDEUI_FLAG_LABEL))
+   if (!(GlobalConfig.HideUIFlags & HIDEUI_FLAG_LABEL)) {
       DrawTextWithTransparency(L"", 0, textPosY);
       DrawTextWithTransparency(Screen->Entries[State->CurrentSelection]->Title,
                                (UGAWidth - egComputeTextWidth(Screen->Entries[State->CurrentSelection]->Title)) >> 1,
                                textPosY);
+   }
 
    if (!(GlobalConfig.HideUIFlags & HIDEUI_FLAG_HINTS)) {
       DrawTextWithTransparency(Screen->Hint1, (UGAWidth - egComputeTextWidth(Screen->Hint1)) / 2,