From 937e7b3dd92bb8fc2b0cd4a334bd277cbd4b2059 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 20 Feb 2022 20:35:28 +0100 Subject: REVIEWED: Some functions input parametes that should be `const` --- src/rtext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rtext.c') diff --git a/src/rtext.c b/src/rtext.c index 0a8af79e..8c536633 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -1092,7 +1092,7 @@ void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSiz } // Draw multiple character (codepoints) -void DrawTextCodepoints(Font font, int *codepoints, int count, Vector2 position, float fontSize, float spacing, Color tint) +void DrawTextCodepoints(Font font, const int *codepoints, int count, Vector2 position, float fontSize, float spacing, Color tint) { int textOffsetY = 0; // Offset between lines (on line break '\n') float textOffsetX = 0.0f; // Offset X to next character to draw @@ -1605,7 +1605,7 @@ const char *TextToPascal(const char *text) // Encode text codepoint into UTF-8 text // REQUIRES: memcpy() // WARNING: Allocated memory should be manually freed -char *TextCodepointsToUTF8(int *codepoints, int length) +char *TextCodepointsToUTF8(const int *codepoints, int length) { // We allocate enough memory fo fit all possible codepoints // NOTE: 5 bytes for every codepoint should be enough -- cgit v1.2.3