consider highlighEnabled value in Menu::Refresh()
This commit is contained in:
@@ -283,7 +283,7 @@ template <class T> void Menu<T>::Refresh()
|
|||||||
}
|
}
|
||||||
if (itsOptions[i].isBold)
|
if (itsOptions[i].isBold)
|
||||||
Bold(1);
|
Bold(1);
|
||||||
if (int(i) == itsHighlight)
|
if (highlightEnabled && int(i) == itsHighlight)
|
||||||
{
|
{
|
||||||
Reverse(1);
|
Reverse(1);
|
||||||
*this << itsHighlightColor;
|
*this << itsHighlightColor;
|
||||||
@@ -295,7 +295,7 @@ template <class T> void Menu<T>::Refresh()
|
|||||||
itsItemDisplayer(*itsOptions[i].Item, itsItemDisplayerUserdata, this);
|
itsItemDisplayer(*itsOptions[i].Item, itsItemDisplayerUserdata, this);
|
||||||
if (itsOptions[i].isSelected && itsSelectedSuffix)
|
if (itsOptions[i].isSelected && itsSelectedSuffix)
|
||||||
*this << *itsSelectedSuffix;
|
*this << *itsSelectedSuffix;
|
||||||
if (int(i) == itsHighlight)
|
if (highlightEnabled && int(i) == itsHighlight)
|
||||||
{
|
{
|
||||||
*this << clEnd;
|
*this << clEnd;
|
||||||
Reverse(0);
|
Reverse(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user