Reverted MeasureTextEx()
change #3105
This commit is contained in:
parent
668b37e111
commit
685d47938b
1 changed files with 1 additions and 1 deletions
|
@ -1254,7 +1254,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing
|
||||||
|
|
||||||
if (tempTextWidth < textWidth) tempTextWidth = textWidth;
|
if (tempTextWidth < textWidth) tempTextWidth = textWidth;
|
||||||
|
|
||||||
textSize.x = (tempTextWidth + (float)((tempByteCounter - 1)*spacing))*scaleFactor;
|
textSize.x = tempTextWidth*scaleFactor + (float)((tempByteCounter - 1)*spacing);
|
||||||
textSize.y = textHeight*scaleFactor;
|
textSize.y = textHeight*scaleFactor;
|
||||||
|
|
||||||
return textSize;
|
return textSize;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue