Skip to content

Commit

Permalink
quartz: fix REFLECT radial gradients
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Andrea Canciani committed Jul 26, 2010
1 parent 3898e46 commit c1fcbd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cairo-quartz-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c1fcbd0

Please sign in to comment.