diff options
| author | aiafrasinei <[email protected]> | 2024-02-27 23:15:09 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-27 22:15:09 +0100 |
| commit | 2aed94cfc21aeb9dc0371964485866aab4384671 (patch) | |
| tree | 141587247876393d2bae19e3e2c0b7716a536860 /examples/text | |
| parent | f0807d2be1cee5aedc48681ae2df978fa3a44ab6 (diff) | |
| download | raylib-2aed94cfc21aeb9dc0371964485866aab4384671.tar.gz raylib-2aed94cfc21aeb9dc0371964485866aab4384671.zip | |
Fix examples warnings for macos (#3842)
Diffstat (limited to 'examples/text')
| -rw-r--r-- | examples/text/text_codepoints_loading.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/text/text_codepoints_loading.c b/examples/text/text_codepoints_loading.c index 04df96e5..c69803c1 100644 --- a/examples/text/text_codepoints_loading.c +++ b/examples/text/text_codepoints_loading.c @@ -60,7 +60,6 @@ int main(void) bool showFontAtlas = false; int codepointSize = 0; - int codepoint = 0; char *ptr = text; SetTargetFPS(60); // Set our game to run at 60 frames-per-second @@ -77,13 +76,13 @@ int main(void) if (IsKeyPressed(KEY_RIGHT)) { // Get next codepoint in string and move pointer - codepoint = GetCodepointNext(ptr, &codepointSize); + GetCodepointNext(ptr, &codepointSize); ptr += codepointSize; } else if (IsKeyPressed(KEY_LEFT)) { // Get previous codepoint in string and move pointer - codepoint = GetCodepointPrevious(ptr, &codepointSize); + GetCodepointPrevious(ptr, &codepointSize); ptr -= codepointSize; } //---------------------------------------------------------------------------------- |
