Explorar o código

Fixed height bug in DrawTextRecEx()

Demizdor %!s(int64=6) %!d(string=hai) anos
pai
achega
40a76cf021
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;