diff options
| author | Ray <[email protected]> | 2020-02-06 17:52:33 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-06 17:52:33 +0100 |
| commit | 86bdf608876ad2766ef58b597bdabd800ce8f053 (patch) | |
| tree | 16815d71f71fbd9cb73faccc6ab127167f525296 /src/text.c | |
| parent | 4b4f052fea4f21a43c1eadadd9afa496066b6881 (diff) | |
| download | raylib-86bdf608876ad2766ef58b597bdabd800ce8f053.tar.gz raylib-86bdf608876ad2766ef58b597bdabd800ce8f053.zip | |
Corrected issue with TextToUpper() and TextToLower()
This issue was breaking multiple things...
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1371,8 +1371,8 @@ const char *TextToUpper(const char *text) { if (text[i] != '\0') { - //buffer[i] = (char)toupper(text[i]); - if ((text[i] >= 'a') && (text[i] <= 'z')) buffer[i] = text[i] - 32; + buffer[i] = (char)toupper(text[i]); + //if ((text[i] >= 'a') && (text[i] <= 'z')) buffer[i] = text[i] - 32; } else { buffer[i] = '\0'; break; } } @@ -1389,8 +1389,8 @@ const char *TextToLower(const char *text) { if (text[i] != '\0') { - //buffer[i] = (char)tolower(text[i]); - if ((text[i] >= 'A') && (text[i] <= 'Z')) buffer[i] = text[i] + 32; + buffer[i] = (char)tolower(text[i]); + //if ((text[i] >= 'A') && (text[i] <= 'Z')) buffer[i] = text[i] + 32; } else { buffer[i] = '\0'; break; } } |
