irr_gui_addStaticText(irr_gui_IGUIEnvironment* guienv,
const char* text,
const irr_core_rect_s32* rectangle,
- int border,
- int wordWrap,
+ bool border,
+ bool wordWrap,
irr_gui_IGUIElement* parent,
- int id,
- int fillBackground)
+ int32_t id,
+ bool fillBackground)
{
// Convert to wide char text
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,