- gui::IGUIElement *e =
- Environment->addEditBox(text.c_str(), rect, true, this, 256);
+ gui::IGUIElement *e;
+ #if USE_FREETYPE
+ if (g_settings->getBool("freetype")) {
+ e = (gui::IGUIElement *) new gui::intlGUIEditBox(text.c_str(), true, Environment, this, 256, rect);
+ e->drop();
+ } else {
+ e = Environment->addEditBox(text.c_str(), rect, true, this, 256);
+ }
+ #else
+ e = Environment->addEditBox(text.c_str(), rect, true, this, 256);
+ #endif