diff options
| author | Ray <[email protected]> | 2023-09-11 19:01:24 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-09-11 19:01:24 +0200 |
| commit | e75f85ce58ccc73a54ec8116f4890247587727ab (patch) | |
| tree | d05333d1202747c6dcf2561b57fdffc8a48b9d16 /src/rtext.c | |
| parent | 30f8dd6e377ba022a70ebdbac78a10f5b27af0eb (diff) | |
| download | raylib-e75f85ce58ccc73a54ec8116f4890247587727ab.tar.gz raylib-e75f85ce58ccc73a54ec8116f4890247587727ab.zip | |
REVIEWED: `TextToPascal()` issue when first char is uppercase
Diffstat (limited to 'src/rtext.c')
| -rw-r--r-- | src/rtext.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rtext.c b/src/rtext.c index 146fc68f..fb844013 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -1676,6 +1676,7 @@ const char *TextToPascal(const char *text) { // Upper case first character if ((text[0] >= 'a') && (text[0] <= 'z')) buffer[0] = text[0] - 32; + else buffer[0] = text[0]; // Check for next separator to upper case another character for (int i = 1, j = 1; (i < MAX_TEXT_BUFFER_LENGTH - 1) && (text[j] != '\0'); i++, j++) |
