|
@@ -524,17 +524,6 @@ static int rect_height_compare(const void *a, const void *b)
|
|
return (p->w > q->w) ? -1 : (p->w < q->w);
|
|
return (p->w > q->w) ? -1 : (p->w < q->w);
|
|
}
|
|
}
|
|
|
|
|
|
-static int rect_width_compare(const void *a, const void *b)
|
|
|
|
-{
|
|
|
|
- const stbrp_rect *p = (const stbrp_rect *) a;
|
|
|
|
- const stbrp_rect *q = (const stbrp_rect *) b;
|
|
|
|
- if (p->w > q->w)
|
|
|
|
- return -1;
|
|
|
|
- if (p->w < q->w)
|
|
|
|
- return 1;
|
|
|
|
- return (p->h > q->h) ? -1 : (p->h < q->h);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static int rect_original_order(const void *a, const void *b)
|
|
static int rect_original_order(const void *a, const void *b)
|
|
{
|
|
{
|
|
const stbrp_rect *p = (const stbrp_rect *) a;
|
|
const stbrp_rect *p = (const stbrp_rect *) a;
|