minor fix for darkened games list

This commit is contained in:
thrust26 2018-08-07 19:55:11 +02:00
parent a1bc2460bb
commit 3869c8770c
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ void StringListWidget::drawWidget(bool hilite)
int i, pos, len = int(_list.size());
// Draw a thin frame around the list.
s.frameRect(_x, _y, _w + 1, _h, hilite && _hilite ? kWidColorHi : kColor);
s.frameRect(_x, _y, _w + 1, _h, onTop && hilite && _hilite ? kWidColorHi : kColor);
// Draw the list items
for (i = 0, pos = _currentPos; i < _rows && pos < len; i++, pos++)
@ -71,7 +71,7 @@ void StringListWidget::drawWidget(bool hilite)
uInt32 textColor = onTop ? kTextColor : kShadowColor;
// Draw the selected item inverted, on a highlighted background.
if (_selectedItem == pos && _hilite)
if (onTop && _selectedItem == pos && _hilite)
{
if(_hasFocus && !_editMode)
{