From e1d1f93f22ce87e520a4015c64a889d6e499b51f Mon Sep 17 00:00:00 2001 From: n67094 Date: Mon, 21 Jun 2021 18:52:29 +0200 Subject: [PATCH] fix indent --- src/text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/text.c b/src/text.c index 138fc2aed..941917a1b 100644 --- a/src/text.c +++ b/src/text.c @@ -929,10 +929,10 @@ void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontSize, f int glyphWidth = 0; 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) - 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