X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2FIGUIEnvironment.cpp;h=6fc3cfa05ae254ad8448fdf797fb5a4d8c12047c;hb=refs%2Fheads%2Fmaster;hp=57d6bb94571f387b1e11a6d4be581806c1d3f418;hpb=0894213e3fdec361f33f1a9816df3973d52590b0;p=c-irrlicht.git diff --git a/src/IGUIEnvironment.cpp b/src/IGUIEnvironment.cpp index 57d6bb9..6fc3cfa 100644 --- a/src/IGUIEnvironment.cpp +++ b/src/IGUIEnvironment.cpp @@ -28,28 +28,21 @@ extern "C" { 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 rect = - irr::core::rect(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*)rectangle, border, wordWrap, (irr::gui::IGUIElement*)parent,