consider highlighEnabled value in Menu::Refresh()

master
Andrzej Rybczak 18 years ago
parent da8feb885f
commit 0ec93e2d2e
  1. 4
      src/menu.h

@ -283,7 +283,7 @@ template <class T> void Menu<T>::Refresh()
}
if (itsOptions[i].isBold)
Bold(1);
if (int(i) == itsHighlight)
if (highlightEnabled && int(i) == itsHighlight)
{
Reverse(1);
*this << itsHighlightColor;
@ -295,7 +295,7 @@ template <class T> void Menu<T>::Refresh()
itsItemDisplayer(*itsOptions[i].Item, itsItemDisplayerUserdata, this);
if (itsOptions[i].isSelected && itsSelectedSuffix)
*this << *itsSelectedSuffix;
if (int(i) == itsHighlight)
if (highlightEnabled && int(i) == itsHighlight)
{
*this << clEnd;
Reverse(0);

Loading…
Cancel
Save