From 015e715278ab9c4abce722bbee705a1b0f788ca2 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 19 Dec 2020 19:12:51 +0100 Subject: [PATCH] Corrected DrawTextRecEx() bug --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index 89e11d1f2..a2be06216 100644 --- a/src/text.c +++ b/src/text.c @@ -1021,7 +1021,7 @@ void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontSize, f // Draw current character glyph if ((codepoint != ' ') && (codepoint != '\t')) { - DrawTextCodepoint(font, codepoint, (Vector2){ position.x + textOffsetX, position.y + textOffsetY }, fontSize, isGlyphSelected? selectTint : tint); + DrawTextCodepoint(font, codepoint, (Vector2){ rec.x + textOffsetX, rec.y + textOffsetY }, fontSize, isGlyphSelected? selectTint : tint); } }