diff options
| author | Ray <[email protected]> | 2019-02-22 12:15:19 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-02-22 12:15:19 +0100 |
| commit | 8382ab9ada2ecccd9a28702af193d242a8f16a6a (patch) | |
| tree | caefc96169ab38c4504aa2aa7c25b94089f8f387 /src/text.c | |
| parent | a886f5e743cd50744d7800cd70a47f5cb9f663e3 (diff) | |
| parent | 40a76cf021cfa0eb0f2265135d796dd0b8a0d7d0 (diff) | |
| download | raylib-8382ab9ada2ecccd9a28702af193d242a8f16a6a.tar.gz raylib-8382ab9ada2ecccd9a28702af193d242a8f16a6a.zip | |
Merge pull request #761 from Demizdor/master
Fixed height bug in DrawTextRecEx()
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
