summaryrefslogtreecommitdiffhomepage
path: root/src/rtext.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-07-06 12:31:01 +0200
committerRay <[email protected]>2023-07-06 12:31:01 +0200
commit685d47938bf97ef5cb2ec094bfebd7de9bd9bef8 (patch)
tree71a017799ac849e9a2dbd442ba37301547fde6a2 /src/rtext.c
parent668b37e1113c653c38ce50757984b8fc074ea9b3 (diff)
downloadraylib-685d47938bf97ef5cb2ec094bfebd7de9bd9bef8.tar.gz
raylib-685d47938bf97ef5cb2ec094bfebd7de9bd9bef8.zip
Reverted `MeasureTextEx()` change #3105
Diffstat (limited to 'src/rtext.c')
-rw-r--r--src/rtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtext.c b/src/rtext.c
index eb3ad551..e7bea9a0 100644
--- a/src/rtext.c
+++ b/src/rtext.c
@@ -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;