summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2020-12-19 19:12:51 +0100
committerRay <[email protected]>2020-12-19 19:12:51 +0100
commit015e715278ab9c4abce722bbee705a1b0f788ca2 (patch)
treeacf2cb09dfe9560c3d1577ede06c367ec1a45e92 /src
parente404a18226cafba0a1e4fabde45649fa9c150a15 (diff)
downloadraylib-015e715278ab9c4abce722bbee705a1b0f788ca2.tar.gz
raylib-015e715278ab9c4abce722bbee705a1b0f788ca2.zip
Corrected DrawTextRecEx() bug
Diffstat (limited to 'src')
-rw-r--r--src/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index 89e11d1f..a2be0621 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);
}
}