raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.47k stars 298 forks source link

Fix window result and pedantic error #302

Closed furudbat closed 1 year ago

furudbat commented 1 year ago

change clicked to result in the RAYGUI_NO_ICONS case.

#if defined(RAYGUI_NO_ICONS)
    result = GuiButton(closeButtonRec, "x");
#else
    result = GuiButton(closeButtonRec, GuiIconText(ICON_CROSS_SMALL, NULL));
#endif

Cast (void) to (unsigned char), and fix pedantic C++ errors.

unsigned char *... = (unsigned char *)RAYGUI_MALLOC(...);
raysan5 commented 1 year ago

@furudbat Thanks for the review!