diff options
| author | Ray <[email protected]> | 2022-03-29 18:11:33 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-03-29 18:11:33 +0200 |
| commit | 9c2d337e996b8c00ce0924675573766686b6d444 (patch) | |
| tree | 6fface51a70f5d5a0663eab07e9a8db8ee9f5433 /src/rtext.c | |
| parent | 3bcb19e040711418a3e387eb6efc1702e663d680 (diff) | |
| download | raylib-9c2d337e996b8c00ce0924675573766686b6d444.tar.gz raylib-9c2d337e996b8c00ce0924675573766686b6d444.zip | |
Update rtext.c
Diffstat (limited to 'src/rtext.c')
| -rw-r--r-- | src/rtext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtext.c b/src/rtext.c index 590a8c03..f266a6a6 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -992,11 +992,11 @@ bool ExportFontAsCode(Font font, const char *fileName) // NOTE: Uses default font void DrawFPS(int posX, int posY) { - Color color = LIME; // good fps + Color color = LIME; // Good FPS int fps = GetFPS(); - if (fps < 30 && fps >= 15) color = ORANGE; // warning FPS - else if (fps < 15) color = RED; // bad FPS + if ((fps < 30) && (fps >= 15)) color = ORANGE; // Warning FPS + else if (fps < 15) color = RED; // Low FPS DrawText(TextFormat("%2i FPS", GetFPS()), posX, posY, 20, color); } @@ -1383,7 +1383,7 @@ const char *TextSubtext(const char *text, int position, int length) // Replace text string // REQUIRES: strlen(), strstr(), strncpy(), strcpy() -// WARNING: Returned buffer must be freed by the user (if return != NULL) +// WARNING: Allocated memory should be manually freed char *TextReplace(char *text, const char *replace, const char *by) { // Sanity checks and initialization |
