瀏覽代碼

Reverted `MeasureTextEx()` change #3105

pull/3163/head
Ray 1 年之前
父節點
當前提交
685d47938b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  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 = p">(tempTextWidth + (float)((tempByteCounter - 1)*spacing))*scaleFactor;
textSize.x = n">tempTextWidth*scaleFactor + (float)((tempByteCounter - 1)*spacing);
textSize.y = textHeight*scaleFactor;
return textSize;

Loading…
取消
儲存