Corrected DrawTextRecEx() bug

This commit is contained in:
Ray 2020-12-19 19:12:51 +01:00
parent e404a18226
commit 015e715278

View file

@ -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);
}
}