Update raygui.h
This commit is contained in:
parent
15a4151b66
commit
19f781780e
@ -2486,7 +2486,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode)
|
|||||||
//int lastSpaceWidth = 0;
|
//int lastSpaceWidth = 0;
|
||||||
//int lastSpaceCursorPos = 0;
|
//int lastSpaceCursorPos = 0;
|
||||||
|
|
||||||
for (int i = 0, codepointSize = 0; text[i] != '\0'; i += codepointSize)
|
for (int i = 0, codepointSize = 0; (text != NULL) && (text[i] != '\0'); i += codepointSize)
|
||||||
{
|
{
|
||||||
int codepoint = GetCodepointNext(text + i, &codepointSize);
|
int codepoint = GetCodepointNext(text + i, &codepointSize);
|
||||||
int index = GetGlyphIndex(guiFont, codepoint); // If requested codepoint is not found, we get '?' (0x3f)
|
int index = GetGlyphIndex(guiFont, codepoint); // If requested codepoint is not found, we get '?' (0x3f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user