avoid leading spaces in text_rectangle_bounds

This commit is contained in:
Szieberth Ádám 2022-10-10 00:02:53 +02:00 committed by GitHub
parent cb085a1b50
commit 9d1009e4be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,6 +263,6 @@ static void DrawTextBoxedSelectable(Font font, const char *text, Rectangle rec,
}
}
textOffsetX += glyphWidth;
if ((textOffsetX != 0) || (codepoint != ' ')) textOffsetX += glyphWidth; // avoid leading spaces
}
}