fix indent

This commit is contained in:
n67094 2021-06-21 18:52:29 +02:00
parent 6024b8e05b
commit e1d1f93f22

View File

@ -929,10 +929,10 @@ void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontSize, f
int glyphWidth = 0; int glyphWidth = 0;
if (codepoint != '\n') if (codepoint != '\n')
{ {
glyphWidth = (font.chars[index].advanceX == 0) ? (int)(font.recs[index].width) : (int)(font.chars[index].advanceX); glyphWidth = (font.chars[index].advanceX == 0) ? (int)(font.recs[index].width) : (int)(font.chars[index].advanceX);
if (i + 1 < length) if (i + 1 < length)
glyphWidth = glyphWidth * scaleFactor + spacing; glyphWidth = glyphWidth * scaleFactor + spacing;
} }
// NOTE: When wordWrap is ON we first measure how much of the text we can draw before going outside of the rec container // NOTE: When wordWrap is ON we first measure how much of the text we can draw before going outside of the rec container