]> git.jsancho.org Git - c-irrlicht.git/blobdiff - src/IGUIEnvironment.cpp
IReferenceCounted
[c-irrlicht.git] / src / IGUIEnvironment.cpp
index 927c0b986b943441ec061e29a687e49766e9fa92..f64f5a8abca65e859da4aafd768a9f587bbaa499 100644 (file)
@@ -28,15 +28,15 @@ 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));
-    mbsrtowcs(wtext, &text, strlen(text) + 1, NULL);
+    mbstowcs(wtext, text, strlen(text) + 1);
 
     // Make rectangle
     irr::core::rect<irr::s32> rect =