mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-15 23:40:32 +01:00
quartz: fix REFLECT radial gradients
The interpolation range of repeating radial gradients can safely be reflected around any integer (previously 0), but for reflect-extended radial gradients can only be reflected around odd integers if the appearance is to be the same, thus reflecting around 1 is correct for both. Fixes radial-gradient.
This commit is contained in:
parent
3898e46d1d
commit
c1fcbd0322
1 changed files with 2 additions and 2 deletions
|
|
@ -1064,8 +1064,8 @@ CreateRepeatingRadialGradientFunction (cairo_quartz_surface_t *surface,
|
|||
input_value_range[0] = t_min;
|
||||
input_value_range[1] = t_max;
|
||||
} else {
|
||||
input_value_range[0] = -t_max;
|
||||
input_value_range[1] = -t_min;
|
||||
input_value_range[0] = 1 - t_max;
|
||||
input_value_range[1] = 1 - t_min;
|
||||
}
|
||||
|
||||
if (_cairo_pattern_create_copy (&pat, &gpat->base))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue