Fix unused maxLineCharCount

This commit is contained in:
Lucas 2026-06-23 22:48:48 +02:00 committed by GitHub
parent e6cc36941a
commit 5d362b3d8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,7 +166,7 @@ static inline Clay_Dimensions Raylib_MeasureText(Clay_StringSlice text, Clay_Tex
maxTextWidth = fmax(maxTextWidth, lineTextWidth);
maxLineCharCount = CLAY__MAX(maxLineCharCount, lineCharCount);
textSize.width = maxTextWidth * scaleFactor + (lineCharCount * config->letterSpacing);
textSize.width = maxTextWidth * scaleFactor + ((maxLineCharCount - 1) * config->letterSpacing);
textSize.height = textHeight;
return textSize;