Fixed a typo in MenuComponent that accidentally used a constant as a

boolean value (technically still worked)
This commit is contained in:
Aloshi 2014-07-27 17:48:49 -05:00
parent 23d8856773
commit ded816905d

View file

@ -26,7 +26,7 @@ public:
inline void addWithLabel(const std::string& label, const std::shared_ptr<GuiComponent>& comp, bool setCursorHere = false, bool invert_when_selected = true)
{
ComponentListRow row;
row.addElement(std::make_shared<TextComponent>(mWindow, strToUpper(label), Font::get(FONT_SIZE_MEDIUM), 0x777777FF), ALIGN_CENTER);
row.addElement(std::make_shared<TextComponent>(mWindow, strToUpper(label), Font::get(FONT_SIZE_MEDIUM), 0x777777FF), true);
row.addElement(comp, false, invert_when_selected);
addRow(row, setCursorHere);
}