mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fixed displaying "umlauts" (deutsch umlaute) and hopefully other non ASCII chars, too
This commit is contained in:
parent
17830c5894
commit
92f504f98d
5 changed files with 20 additions and 0 deletions
|
@ -85,6 +85,7 @@ void GUIMessageMenu::regenerateGui(v2u32 screensize)
|
|||
Environment->addStaticText(m_message_text.c_str(), rect, false,
|
||||
true, this, 256);
|
||||
}
|
||||
setlocale(LC_CTYPE, "");
|
||||
{
|
||||
core::rect<s32> rect(0, 0, 140, 30);
|
||||
rect = rect + v2s32(size.X/2-140/2, size.Y/2-30/2+25);
|
||||
|
@ -93,6 +94,7 @@ void GUIMessageMenu::regenerateGui(v2u32 screensize)
|
|||
chartowchar_t(gettext("Proceed")));
|
||||
Environment->setFocus(e);
|
||||
}
|
||||
setlocale(LC_CTYPE, "en_US");
|
||||
}
|
||||
|
||||
void GUIMessageMenu::drawMenu()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue