Bläddra i källkod

Fix empty input string for MeasureTextEx (#4448)

pull/4449/head
mpv-enjoyer 5 månader sedan
committed by GitHub
förälder
incheckning
de7ab83f5a
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: B5690EEEBB952194
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      src/rtext.c

+ 1
- 1
src/rtext.c Visa fil

@ -1327,7 +1327,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing
if (tempTextWidth < textWidth) tempTextWidth = textWidth;
textSize.x = tempTextWidth*scaleFactor + (float)((tempByteCounter - 1)*spacing);
k">if (size > 0) textSize.x = tempTextWidth*scaleFactor + (float)((tempByteCounter - 1)*spacing);
textSize.y = textHeight;
return textSize;

Laddar…
Avbryt
Spara