X-Git-Url: https://git.jsancho.org/?p=c-irrlicht.git;a=blobdiff_plain;f=src%2FIGUIEnvironment.cpp;h=7f92386c26b5f5ad4786829cd79fc686ee481930;hp=a77c678feb6b7bbd38c1c5e9b48820a08a1a6098;hb=3b8ff07b2c13c111e2b9eebaeaf64c7b17b29019;hpb=c08eb5c91c4c76de8decadcb50f1dea7d4c496ca diff --git a/src/IGUIEnvironment.cpp b/src/IGUIEnvironment.cpp index a77c678..7f92386 100644 --- a/src/IGUIEnvironment.cpp +++ b/src/IGUIEnvironment.cpp @@ -24,14 +24,15 @@ #include "IGUIEnvironment.h" extern "C" { - void* irr_gui_IGUIEnvironment_addStaticText(void* guienv, - const char* text, - const irr_core_rect_s32* rectangle, - bool border, - bool wordWrap, - void* parent, - int32_t id, - bool fillBackground) + irr_gui_IGUIStaticText* + irr_gui_IGUIEnvironment_addStaticText(irr_gui_IGUIEnvironment* guienv, + const char* text, + const irr_core_rect_s32* rectangle, + bool border, + bool wordWrap, + irr_gui_IGUIElement* parent, + int32_t id, + bool fillBackground) { // Convert to wide char text wchar_t *wtext = (wchar_t*)malloc((strlen(text) + 1) * sizeof(wchar_t)); @@ -56,7 +57,8 @@ extern "C" { return staticText; } - void irr_gui_IGUIEnvironment_drawAll(void* guienv) + void + irr_gui_IGUIEnvironment_drawAll(irr_gui_IGUIEnvironment* guienv) { ((irr::gui::IGUIEnvironment*)guienv)->drawAll(); }