瀏覽代碼

Merge pull request #761 from Demizdor/master

Fixed height bug in DrawTextRecEx()
Ray 6 年之前
父節點
當前提交
8382ab9ada
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/text.c

+ 1 - 1
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;