Skip to content
Myr

Minor fixes.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by cosmy1 · committed by Sean Barrett · parent bde8f7c · Browse files · 1 file+11 added−2 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+11 added−2 removed

  • other:+11 added−2 removed

1 file+11 added−2 removed

modified:stb_rect_pack.h+11 added-2 removed
146 unmodified lines
147enum148{149 STBRP_HEURISTIC_Skyline_default=0,150 STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default,151 STBRP_HEURISTIC_Skyline_BF_sortHeight,151 STBRP_HEURISTIC_Skyline_BF_sortHeight152};153154155//////////////////////////////////////////////////////////////////////////////
41 unmodified lines
197#include <assert.h>198#define STBRP_ASSERT assert199#endif200201#ifdef _MSC_VER202#define STBRP__NOTUSED(v) (void)(v)203#else204#define STBRP__NOTUSED(v) (void)sizeof(v)205#endif206207enum208{203 STBRP__INIT_skyline = 1,209 STBRP__INIT_skyline = 1210};211212STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic)213{
64 unmodified lines
278{279 stbrp_node *node = first;280 int x1 = x0 + width;281 int min_y, visited_width, waste_area;282 283 STBRP__NOTUSED(c);284 285 STBRP_ASSERT(first->x <= x0);286287 #if 0288 // skip in case we're past the node
293 unmodified lines