[cairo] Flip offsets when reversing
Fixes many of the var_colrv1 first row tests. https://roettsch.es/var_colrv1.html
This commit is contained in:
parent
5b05e198cf
commit
ea316b56a0
|
@ -598,6 +598,8 @@ _hb_cairo_add_sweep_gradient_patches (hb_color_stop_t *stops,
|
||||||
|
|
||||||
for (unsigned i = 0; i < n_stops - 1 - i; i++)
|
for (unsigned i = 0; i < n_stops - 1 - i; i++)
|
||||||
hb_swap (stops[i], stops[n_stops - 1 - i]);
|
hb_swap (stops[i], stops[n_stops - 1 - i]);
|
||||||
|
for (unsigned i = 0; i < n_stops; i++)
|
||||||
|
stops[i].offset = 1 - stops[i].offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n_stops > PREALLOCATED_COLOR_STOPS)
|
if (n_stops > PREALLOCATED_COLOR_STOPS)
|
||||||
|
|
Loading…
Reference in New Issue