diff options
| author | SasLuca <[email protected]> | 2020-04-02 22:53:29 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-02 23:53:29 +0200 |
| commit | 8444c3f705f36e1c8adaef26ccf4ee4b1c39a2e5 (patch) | |
| tree | b4f26ea01cfe06ae8fc7c6aa6b55014773d81045 /src | |
| parent | 7ef114d1da2c34a70bba5442497103441647d8f3 (diff) | |
| download | raylib-8444c3f705f36e1c8adaef26ccf4ee4b1c39a2e5.tar.gz raylib-8444c3f705f36e1c8adaef26ccf4ee4b1c39a2e5.zip | |
Fixed offset check in GenImageFontAtlas (#1171)
* Fixed offset check in GenImageFontAtlas
* Fixed code formatting to follow raylib notation rules
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
