mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-15 15:58:14 +00:00
Fixed offset check in GenImageFontAtlas (#1171)
* Fixed offset check in GenImageFontAtlas * Fixed code formatting to follow raylib notation rules
This commit is contained in:
@@ -652,7 +652,7 @@ Image GenImageFontAtlas(const CharInfo *chars, Rectangle **charRecs, int charsCo
|
||||
// Move atlas position X for next character drawing
|
||||
offsetX += (chars[i].image.width + 2*padding);
|
||||
|
||||
if (offsetX >= (atlas.width - chars[i].image.width - padding))
|
||||
if (offsetX >= (atlas.width - chars[i].image.width - 2*padding))
|
||||
{
|
||||
offsetX = padding;
|
||||
|
||||
|
Reference in New Issue
Block a user