mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
RENAMED: Variable names for consistency, textLength (length in bytes) vs textSize (measure in pixels)
This commit is contained in:
@ -1449,17 +1449,17 @@ char **LoadTextLines(const char *text, int *count)
|
||||
|
||||
if (text != NULL)
|
||||
{
|
||||
int textSize = TextLength(text);
|
||||
int textLength = TextLength(text);
|
||||
lineCount = 1;
|
||||
|
||||
// First text scan pass to get required line count
|
||||
for (int i = 0; i < textSize; i++)
|
||||
for (int i = 0; i < textLength; i++)
|
||||
{
|
||||
if (text[i] == '\n') lineCount++;
|
||||
}
|
||||
|
||||
lines = (char **)RL_CALLOC(lineCount, sizeof(char *));
|
||||
for (int i = 0, l = 0, lineLen = 0; i <= textSize; i++)
|
||||
for (int i = 0, l = 0, lineLen = 0; i <= textLength; i++)
|
||||
{
|
||||
if ((text[i] == '\n') || (text[i] == '\0'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user