Sfoglia il codice sorgente

Fix empty input string for MeasureTextEx (#4448)

pull/4449/head
mpv-enjoyer 1 anno fa
committed by GitHub
parent
commit
de7ab83f5a
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: B5690EEEBB952194
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/rtext.c

+ 1
- 1
src/rtext.c Vedi File

@ -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;

Caricamento…
Annulla
Salva