Update rtext.c
This commit is contained in:
parent
33cee1146c
commit
ec828071ef
|
|
@ -1452,6 +1452,10 @@ Rectangle GetGlyphAtlasRec(Font font, int codepoint)
|
||||||
// NOTE: Returned lines end with null terminator '\0'
|
// NOTE: Returned lines end with null terminator '\0'
|
||||||
char **LoadTextLines(const char *text, int *count)
|
char **LoadTextLines(const char *text, int *count)
|
||||||
{
|
{
|
||||||
|
char **lines = NULL;
|
||||||
|
|
||||||
|
if (text == NULL) { *count = 0; return lines; }
|
||||||
|
|
||||||
int lineCount = 1;
|
int lineCount = 1;
|
||||||
int textSize = (int)strlen(text);
|
int textSize = (int)strlen(text);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user