wchar_t *wtext = (wchar_t*)malloc((strlen(text) + 1) * sizeof(wchar_t));
mbstowcs(wtext, text, strlen(text) + 1);
- // Make rectangle
- irr::core::rect<irr::s32> rect =
- irr::core::rect<irr::s32>(rectangle->x,
- rectangle->y,
- rectangle->x2,
- rectangle->y2);
-
// Add static text
irr::gui::IGUIStaticText *staticText =
((irr::gui::IGUIEnvironment*)guienv)
->addStaticText(wtext,
- rect,
+ *(irr::core::rect<irr::s32>*)rectangle,
border,
wordWrap,
(irr::gui::IGUIElement*)parent,