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:
Andrea Canciani 2010-07-26 11:21:48 +02:00
parent 3898e46d1d
commit c1fcbd0322

View file

@ -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))