From 40a76cf021cfa0eb0f2265135d796dd0b8a0d7d0 Mon Sep 17 00:00:00 2001 From: Demizdor Date: Fri, 22 Feb 2019 12:27:20 +0200 Subject: [PATCH] Fixed height bug in DrawTextRecEx() --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index 9a7d690d..5b33e600 100644 --- a/src/text.c +++ b/src/text.c @@ -897,7 +897,7 @@ void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontSize, f textOffsetX = 0; } - if ((textOffsetY + (int)((font.baseSize + font.baseSize/2)*scaleFactor)) > rec.height) break; + if ((textOffsetY + (int)(font.baseSize*scaleFactor)) > rec.height) break; //draw selected bool isGlyphSelected = false;