summaryrefslogtreecommitdiffhomepage
path: root/src/rtext.c
diff options
context:
space:
mode:
authorRay <[email protected]>2024-05-01 18:12:57 +0200
committerRay <[email protected]>2024-05-01 18:12:57 +0200
commit763129e96b0ae8a795f62d40d1b75736e4e6ae46 (patch)
treecdc837d00c8f660b720b1bf64a49f6c4e4f363c1 /src/rtext.c
parent27a015d022ecdf771ea64b23f495a3b66101e170 (diff)
downloadraylib-763129e96b0ae8a795f62d40d1b75736e4e6ae46.tar.gz
raylib-763129e96b0ae8a795f62d40d1b75736e4e6ae46.zip
Reviewed some warnings
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 3544ff8d..b5ba17e3 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -1151,7 +1151,7 @@ void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, f
int size = TextLength(text); // Total size in bytes of the text, scanned by codepoints in loop
- int textOffsetY = 0; // Offset between lines (on linebreak '\n')
+ float textOffsetY = 0; // Offset between lines (on linebreak '\n')
float textOffsetX = 0.0f; // Offset X to next character to draw
float scaleFactor = fontSize/font.baseSize; // Character quad scaling factor
@@ -1225,7 +1225,7 @@ void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSiz
// Draw multiple character (codepoints)
void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint)
{
- int textOffsetY = 0; // Offset between lines (on linebreak '\n')
+ float textOffsetY = 0; // Offset between lines (on linebreak '\n')
float textOffsetX = 0.0f; // Offset X to next character to draw
float scaleFactor = fontSize/font.baseSize; // Character quad scaling factor