consider highlighEnabled value in Menu::Refresh()

This commit is contained in:
Andrzej Rybczak
2008-12-11 18:32:14 +01:00
parent da8feb885f
commit 0ec93e2d2e

View File

@@ -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);