[cairo] Another sweep_gradient fix

k was -1 sometimes.

Fixes the rest of https://roettsch.es/var_colrv1.html
This commit is contained in:
Behdad Esfahbod 2023-01-25 15:42:24 -07:00
parent 13bfef9f01
commit 570fe998c9
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ _hb_cairo_add_sweep_gradient_patches (hb_color_stop_t *stops,
//assert (angles[0] + k * span <= 0 && 0 < angles[n_stops - 1] + k * span);
span = fabs (span);
for (unsigned l = k; l < 1000; l++)
for (signed l = k; l < 1000; l++)
{
for (unsigned i = 1; i < n_stops; i++)
{