]> git.nega.tv - josh/narcissus/commit
Make rect_height_compare a stable sort
authorJoshua Simmons <josh@nega.tv>
Sun, 26 Feb 2023 09:47:01 +0000 (10:47 +0100)
committerJoshua Simmons <josh@nega.tv>
Sun, 26 Feb 2023 09:47:01 +0000 (10:47 +0100)
commite783b833f9ad84b9a37aa259d76f063b1da0c95b
treec97cd56393e525e030cb94077d458a8c59f967b8
parent4b851c504edc394204ffe24cfc300fd0a8ddae5b
Make rect_height_compare a stable sort

stb_rect_pack was producing different results on different platforms due to differing qsort implementations.

This change uses the existing was_packed field to make the sort stable.
libs/ffi/stb_truetype-sys/src/stb_rect_pack.h