mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 06:13:10 +00:00
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'
|
||||
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…
x
Reference in New Issue
Block a user