@@ -772,7 +772,7 @@ RAYGUIAPI int GuiWindowBox(Rectangle bounds, const char *title);
772772RAYGUIAPI int GuiGroupBox (Rectangle bounds , const char * text ); // Group Box control with text name
773773RAYGUIAPI int GuiLine (Rectangle bounds , const char * text ); // Line separator control, could contain text
774774RAYGUIAPI int GuiPanel (Rectangle bounds , const char * text ); // Panel control, useful to group controls
775- RAYGUIAPI int GuiTabBar (Rectangle bounds , const char * * text , int count , int * active ); // Tab Bar control, returns TAB to be closed or -1
775+ RAYGUIAPI int GuiTabBar (Rectangle bounds , char * * text , int count , int * active ); // Tab Bar control, returns TAB to be closed or -1
776776RAYGUIAPI int GuiScrollPanel (Rectangle bounds , const char * text , Rectangle content , Vector2 * scroll , Rectangle * view ); // Scroll Panel control
777777
778778// Basic controls set
@@ -800,7 +800,7 @@ RAYGUIAPI int GuiGrid(Rectangle bounds, const char *text, float spacing, int sub
800800
801801// Advance controls set
802802RAYGUIAPI int GuiListView (Rectangle bounds , const char * text , int * scrollIndex , int * active ); // List View control
803- RAYGUIAPI int GuiListViewEx (Rectangle bounds , const char * * text , int count , int * scrollIndex , int * active , int * focus ); // List View with extended parameters
803+ RAYGUIAPI int GuiListViewEx (Rectangle bounds , char * * text , int count , int * scrollIndex , int * active , int * focus ); // List View with extended parameters
804804RAYGUIAPI int GuiMessageBox (Rectangle bounds , const char * title , const char * message , const char * buttons ); // Message Box control, displays a message
805805RAYGUIAPI int GuiTextInputBox (Rectangle bounds , const char * title , const char * message , const char * buttons , char * text , int textMaxSize , bool * secretViewActive ); // Text Input Box control, ask for text, supports secret
806806RAYGUIAPI int GuiColorPicker (Rectangle bounds , const char * text , Color * color ); // Color Picker control (multiple color controls)
@@ -1526,7 +1526,7 @@ static Color GetColor(int hexValue); // Returns a Color struct fr
15261526static int ColorToInt (Color color ); // Returns hexadecimal value for a Color
15271527static bool CheckCollisionPointRec (Vector2 point , Rectangle rec ); // Check if point is inside rectangle
15281528static const char * TextFormat (const char * text , ...); // Formatting of text with variables to 'embed'
1529- static const char * * TextSplit (const char * text , char delimiter , int * count ); // Split text into multiple strings
1529+ static char * * TextSplit (const char * text , char delimiter , int * count ); // Split text into multiple strings
15301530static int TextToInteger (const char * text ); // Get integer value from text
15311531static float TextToFloat (const char * text ); // Get float value from text
15321532
@@ -1549,7 +1549,7 @@ static const char *GetTextIcon(const char *text, int *iconId); // Get text icon
15491549static void GuiDrawText (const char * text , Rectangle textBounds , int alignment , Color tint ); // Gui draw text using default font
15501550static void GuiDrawRectangle (Rectangle rec , int borderWidth , Color borderColor , Color color ); // Gui draw rectangle using default raygui style
15511551
1552- static const char * * GuiTextSplit (const char * text , char delimiter , int * count , int * textRow ); // Split controls text into multiple strings
1552+ static char * * GuiTextSplit (const char * text , char delimiter , int * count , int * textRow ); // Split controls text into multiple strings
15531553static Vector3 ConvertHSVtoRGB (Vector3 hsv ); // Convert color data from HSV to RGB
15541554static Vector3 ConvertRGBtoHSV (Vector3 rgb ); // Convert color data from RGB to HSV
15551555
@@ -1783,7 +1783,7 @@ int GuiPanel(Rectangle bounds, const char *text)
17831783
17841784// Tab Bar control
17851785// NOTE: Using GuiToggle() for the TABS
1786- int GuiTabBar (Rectangle bounds , const char * * text , int count , int * active )
1786+ int GuiTabBar (Rectangle bounds , char * * text , int count , int * active )
17871787{
17881788 #define RAYGUI_TABBAR_ITEM_WIDTH 148
17891789
@@ -2168,7 +2168,7 @@ int GuiToggleGroup(Rectangle bounds, const char *text, int *active)
21682168 // Get substrings items from text (items pointers)
21692169 int rows [RAYGUI_TOGGLEGROUP_MAX_ITEMS ] = { 0 };
21702170 int itemCount = 0 ;
2171- const char * * items = GuiTextSplit (text , ';' , & itemCount , rows );
2171+ char * * items = GuiTextSplit (text , ';' , & itemCount , rows );
21722172
21732173 int prevRow = rows [0 ];
21742174
@@ -2212,7 +2212,7 @@ int GuiToggleSlider(Rectangle bounds, const char *text, int *active)
22122212
22132213 // Get substrings items from text (items pointers)
22142214 int itemCount = 0 ;
2215- const char * * items = NULL ;
2215+ char * * items = NULL ;
22162216
22172217 if (text != NULL ) items = GuiTextSplit (text , ';' , & itemCount , NULL );
22182218
@@ -2356,7 +2356,7 @@ int GuiComboBox(Rectangle bounds, const char *text, int *active)
23562356
23572357 // Get substrings items from text (items pointers, lengths and count)
23582358 int itemCount = 0 ;
2359- const char * * items = GuiTextSplit (text , ';' , & itemCount , NULL );
2359+ char * * items = GuiTextSplit (text , ';' , & itemCount , NULL );
23602360
23612361 if (* active < 0 ) * active = 0 ;
23622362 else if (* active > (itemCount - 1 )) * active = itemCount - 1 ;
@@ -2422,7 +2422,7 @@ int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMod
24222422
24232423 // Get substrings items from text (items pointers, lengths and count)
24242424 int itemCount = 0 ;
2425- const char * * items = GuiTextSplit (text , ';' , & itemCount , NULL );
2425+ char * * items = GuiTextSplit (text , ';' , & itemCount , NULL );
24262426
24272427 Rectangle boundsOpen = bounds ;
24282428 boundsOpen .height = (itemCount + 1 )* (bounds .height + GuiGetStyle (DROPDOWNBOX , DROPDOWN_ITEMS_SPACING ));
@@ -3602,7 +3602,7 @@ int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *activ
36023602{
36033603 int result = 0 ;
36043604 int itemCount = 0 ;
3605- const char * * items = NULL ;
3605+ char * * items = NULL ;
36063606
36073607 if (text != NULL ) items = GuiTextSplit (text , ';' , & itemCount , NULL );
36083608
@@ -3612,7 +3612,7 @@ int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *activ
36123612}
36133613
36143614// List View control with extended parameters
3615- int GuiListViewEx (Rectangle bounds , const char * * text , int count , int * scrollIndex , int * active , int * focus )
3615+ int GuiListViewEx (Rectangle bounds , char * * text , int count , int * scrollIndex , int * active , int * focus )
36163616{
36173617 int result = 0 ;
36183618 GuiState state = guiState ;
@@ -4140,7 +4140,7 @@ int GuiMessageBox(Rectangle bounds, const char *title, const char *message, cons
41404140 int result = -1 ; // Returns clicked button from buttons list, 0 refers to closed window button
41414141
41424142 int buttonCount = 0 ;
4143- const char * * buttonsText = GuiTextSplit (buttons , ';' , & buttonCount , NULL );
4143+ char * * buttonsText = GuiTextSplit (buttons , ';' , & buttonCount , NULL );
41444144 Rectangle buttonBounds = { 0 };
41454145 buttonBounds .x = bounds .x + RAYGUI_MESSAGEBOX_BUTTON_PADDING ;
41464146 buttonBounds .y = bounds .y + bounds .height - RAYGUI_MESSAGEBOX_BUTTON_HEIGHT - RAYGUI_MESSAGEBOX_BUTTON_PADDING ;
@@ -4199,7 +4199,7 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, co
41994199 int result = -1 ;
42004200
42014201 int buttonCount = 0 ;
4202- const char * * buttonsText = GuiTextSplit (buttons , ';' , & buttonCount , NULL );
4202+ char * * buttonsText = GuiTextSplit (buttons , ';' , & buttonCount , NULL );
42034203 Rectangle buttonBounds = { 0 };
42044204 buttonBounds .x = bounds .x + RAYGUI_TEXTINPUTBOX_BUTTON_PADDING ;
42054205 buttonBounds .y = bounds .y + bounds .height - RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT - RAYGUI_TEXTINPUTBOX_BUTTON_PADDING ;
@@ -5119,11 +5119,11 @@ static const char *GetTextIcon(const char *text, int *iconId)
51195119
51205120// Get text divided into lines (by line-breaks '\n')
51215121// WARNING: It returns pointers to new lines but it does not add NULL ('\0') terminator!
5122- static const char * * GetTextLines (const char * text , int * count )
5122+ static char * * GetTextLines (const char * text , int * count )
51235123{
51245124 #define RAYGUI_MAX_TEXT_LINES 128
51255125
5126- static const char * lines [RAYGUI_MAX_TEXT_LINES ] = { 0 };
5126+ static char * lines [RAYGUI_MAX_TEXT_LINES ] = { 0 };
51275127 for (int i = 0 ; i < RAYGUI_MAX_TEXT_LINES ; i ++ ) lines [i ] = NULL ; // Init NULL pointers to substrings
51285128
51295129 int textLength = (int )strlen (text );
@@ -5194,7 +5194,7 @@ static void GuiDrawText(const char *text, Rectangle textBounds, int alignment, C
51945194 // WARNING: GuiTextSplit() function can't be used now because it can have already been used
51955195 // before the GuiDrawText() call and its buffer is static, it would be overriden :(
51965196 int lineCount = 0 ;
5197- const char * * lines = GetTextLines (text , & lineCount );
5197+ char * * lines = GetTextLines (text , & lineCount );
51985198
51995199 // Text style variables
52005200 //int alignment = GuiGetStyle(DEFAULT, TEXT_ALIGNMENT);
@@ -5444,7 +5444,7 @@ static void GuiTooltip(Rectangle controlRec)
54445444
54455445// Split controls text into multiple strings
54465446// Also check for multiple columns (required by GuiToggleGroup())
5447- static const char * * GuiTextSplit (const char * text , char delimiter , int * count , int * textRow )
5447+ static char * * GuiTextSplit (const char * text , char delimiter , int * count , int * textRow )
54485448{
54495449 // NOTE: Current implementation returns a copy of the provided string with '\0' (string end delimiter)
54505450 // inserted between strings defined by "delimiter" parameter. No memory is dynamically allocated,
@@ -5463,7 +5463,7 @@ static const char **GuiTextSplit(const char *text, char delimiter, int *count, i
54635463 #define RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE 1024
54645464 #endif
54655465
5466- static const char * result [RAYGUI_TEXTSPLIT_MAX_ITEMS ] = { NULL }; // String pointers array (points to buffer data)
5466+ static char * result [RAYGUI_TEXTSPLIT_MAX_ITEMS ] = { NULL }; // String pointers array (points to buffer data)
54675467 static char buffer [RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE ] = { 0 }; // Buffer data (text input copy with '\0' added)
54685468 memset (buffer , 0 , RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE );
54695469
@@ -5863,7 +5863,7 @@ static void DrawRectangleGradientV(int posX, int posY, int width, int height, Co
58635863}
58645864
58655865// Split string into multiple strings
5866- const char * * TextSplit (const char * text , char delimiter , int * count )
5866+ char * * TextSplit (const char * text , char delimiter , int * count )
58675867{
58685868 // NOTE: Current implementation returns a copy of the provided string with '\0' (string end delimiter)
58695869 // inserted between strings defined by "delimiter" parameter. No memory is dynamically allocated,
0 commit comments