summaryrefslogtreecommitdiffhomepage
path: root/src/rtext.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2022-02-20 20:35:28 +0100
committerraysan5 <[email protected]>2022-02-20 20:35:28 +0100
commit937e7b3dd92bb8fc2b0cd4a334bd277cbd4b2059 (patch)
tree9f4309595e277b553b2bd64a5a3979e684cd9c02 /src/rtext.c
parent68bad6986dec2469b8222c610b6a94be2092bd0e (diff)
downloadraylib-937e7b3dd92bb8fc2b0cd4a334bd277cbd4b2059.tar.gz
raylib-937e7b3dd92bb8fc2b0cd4a334bd277cbd4b2059.zip
REVIEWED: Some functions input parametes that should be `const`
Diffstat (limited to 'src/rtext.c')
-rw-r--r--src/rtext.c4
1 files changed, 2 insertions, 2 deletions
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