Browse Source

Update rtext.c

pull/5365/head
Ray 2 weeks ago
parent
commit
ec828071ef
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/rtext.c

+ 4
- 0
src/rtext.c View File

@ -1452,6 +1452,10 @@ Rectangle GetGlyphAtlasRec(Font font, int codepoint)
// NOTE: Returned lines end with null terminator '\0'
char **LoadTextLines(const char *text, int *count)
{
char **lines = NULL;
if (text == NULL) { *count = 0; return lines; }
int lineCount = 1;
int textSize = (int)strlen(text);

Loading…
Cancel
Save