Merge pull request #761 from Demizdor/master

Fixed height bug in DrawTextRecEx()
This commit is contained in:
Ray 2019-02-22 12:15:19 +01:00 committed by GitHub
commit 8382ab9ada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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