avoid leading spaces in text_rectangle_bounds (#2746)

This commit is contained in:
Szieberth Ádám 2022-10-11 12:14:40 +02:00 committed by GitHub
parent 0d04ceafbf
commit 4cca234f46
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
}
}
}