summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.rc.data
diff options
context:
space:
mode:
authorHanaxar <[email protected]>2023-03-22 13:00:13 +0300
committerGitHub <[email protected]>2023-03-22 11:00:13 +0100
commite55bdd5d8af913016b74776d0878b30eb830f138 (patch)
tree91c49e91e2100d523823b94fd44f7325dc786096 /src/raylib.rc.data
parent02a8a49961190cb2076955d0960695134ba83fe2 (diff)
downloadraylib-e55bdd5d8af913016b74776d0878b30eb830f138.tar.gz
raylib-e55bdd5d8af913016b74776d0878b30eb830f138.zip
Fix packing logic error in ```GenImageFontAtlas``` (#2979)
Basic packing algorithm currently follows this order: Copy pixel data -> Move offsetX for current glyph -> Check remaining space for current glyph... Since X offset already moved according current glyph, remaining space should be checked for next glyph. Because of this, occasionally, current logic causes glyphs wrapping around texture. Proposed fix accomplishes that by moving offsetX check to the beginning of the loop.
Diffstat (limited to 'src/raylib.rc.data')
0 files changed, 0 insertions, 0 deletions