From 5fdfe6ae5d8118d7e2c0f90a8a7014e4d60a3a28 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 26 Dec 2022 16:52:53 -0700 Subject: [PATCH] [cairo] Use hb_qsort --- src/hb-cairo-utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-cairo-utils.cc b/src/hb-cairo-utils.cc index 179518349..e47456277 100644 --- a/src/hb-cairo-utils.cc +++ b/src/hb-cairo-utils.cc @@ -253,7 +253,7 @@ _hb_cairo_normalize_color_line (hb_color_stop_t *stops, { float min, max; - qsort (stops, len, sizeof (hb_color_stop_t), _hb_cairo_cmp_color_stop); + hb_qsort (stops, len, sizeof (hb_color_stop_t), _hb_cairo_cmp_color_stop); min = max = stops[0].offset; for (unsigned int i = 0; i < len; i++) @@ -808,7 +808,7 @@ hb_cairo_paint_sweep_gradient (cairo_t *cr, stops = (hb_color_stop_t *) malloc (len * sizeof (hb_color_stop_t)); hb_color_line_get_color_stops (color_line, 0, &len, stops); - qsort (stops, len, sizeof (hb_color_stop_t), _hb_cairo_cmp_color_stop); + hb_qsort (stops, len, sizeof (hb_color_stop_t), _hb_cairo_cmp_color_stop); cairo_clip_extents (cr, &x1, &y1, &x2, &y2); max_x = (float) hb_max ((x1 - (double) cx) * (x1 - (double) cx), (x2 - (double) cx) * (x2 - (double) cx));