Use custom upchar and lochar by default due to accents in font files.

This commit is contained in:
Henrique Santiago
2012-08-07 21:12:36 -03:00
parent 26c682c0dc
commit 466d8e8820
4 changed files with 13 additions and 10 deletions

View File

@@ -108,7 +108,7 @@ void UIWidget::onFontChange(const std::string& font)
void UIWidget::setText(std::string text)
{
if(m_textOnlyUpperCase)
std::transform(text.begin(), text.end(), text.begin(), toupper);
stdext::toupper(text);
if(m_text == text)
return;