Skip to content

Commit aec6e85

Browse files
committed
Update raygui.h
1 parent 25e5215 commit aec6e85

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/models/raygui.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5128,11 +5128,11 @@ static const char *GetTextIcon(const char *text, int *iconId)
51285128

51295129
// Get text divided into lines (by line-breaks '\n')
51305130
// WARNING: It returns pointers to new lines but it does not add NULL ('\0') terminator!
5131-
static char **GetTextLines(const char *text, int *count)
5131+
static const char **GetTextLines(const char *text, int *count)
51325132
{
51335133
#define RAYGUI_MAX_TEXT_LINES 128
51345134

5135-
static char *lines[RAYGUI_MAX_TEXT_LINES] = { 0 };
5135+
static const char *lines[RAYGUI_MAX_TEXT_LINES] = { 0 };
51365136
for (int i = 0; i < RAYGUI_MAX_TEXT_LINES; i++) lines[i] = NULL; // Init NULL pointers to substrings
51375137

51385138
int textLength = (int)strlen(text);
@@ -5202,7 +5202,7 @@ static void GuiDrawText(const char *text, Rectangle textBounds, int alignment, C
52025202
// WARNING: GuiTextSplit() function can't be used now because it can have already been used
52035203
// before the GuiDrawText() call and its buffer is static, it would be overriden :(
52045204
int lineCount = 0;
5205-
char **lines = GetTextLines(text, &lineCount);
5205+
const char **lines = GetTextLines(text, &lineCount);
52065206

52075207
// Text style variables
52085208
//int alignment = GuiGetStyle(DEFAULT, TEXT_ALIGNMENT);

0 commit comments

Comments
 (0)