Skip to content

Commit

Permalink
Reverted MeasureTextEx() change #3105
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Jul 6, 2023
1 parent 668b37e commit 685d479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing

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;

return textSize;
Expand Down

0 comments on commit 685d479

Please sign in to comment.