stb_rect_pack: Fix two bugs.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
stbrp__skyline_find_best_pos didn't correctly handle rects too large to ever fit inside the context. Since that function also pads the width up to a multiple of the alignment, it makes the most sense to do that check right after (but before entering the main packing loop). While we're here, also fix an off-by-1 bug in the best-fit heuristic where it didn't want to use the last row in certain cases. Fixes issue #701.
authored by Fabian Giesen · committed by Fabian Giesen · parent 59e9702 · Browse files · 1 file+9 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+9 added−1 removed
- other:+9 added−1 removed