Explorar el Código

Reverted `MeasureTextEx()` change #3105

Ray hace 2 años
padre
commit
685d47938b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/rtext.c

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