Fixed selected text color changes only applying to centered lists.

This commit is contained in:
Aloshi 2013-01-08 23:01:52 -06:00
parent 016df5864f
commit 9a27a868bb

View file

@ -77,7 +77,7 @@ void GuiList<listType>::onRender()
if(mDrawCentered)
Renderer::drawCenteredText(row.name, getOffsetX(), y, (mSelection == i && mSelectedTextColorOverride != 0) ? mSelectedTextColorOverride : row.color, mFont);
else
Renderer::drawText(row.name, getOffsetX() + mTextOffsetX, y, (mSelection == i) ? mSelectedTextColorOverride : row.color, mFont);
Renderer::drawText(row.name, getOffsetX() + mTextOffsetX, y, (mSelection == i && mSelectedTextColorOverride != 0) ? mSelectedTextColorOverride : row.color, mFont);
y += entrySize;
}