Commit 5adc9e5d authored by Caleb Michael Moore's avatar Caleb Michael Moore

radial gradient fix

parent 190d010b
2005-10-10 Caleb Moore <c.moore@student.unsw.edu.au> 2005-10-10 Caleb Moore <c.moore@student.unsw.edu.au>
* rsvg-cairo-draw.c: patterns now transform correctly, passes all pattern tests * rsvg-cairo-draw.c: patterns now transform correctly, passes all pattern tests
* rsvg-cairo-draw.c: fx and fy were confused with cx and cy in the radial gradient section
2005-10-09 Caleb Moore <c.moore@student.unsw.edu.au> 2005-10-09 Caleb Moore <c.moore@student.unsw.edu.au>
......
...@@ -130,9 +130,8 @@ _set_source_rsvg_radial_gradient (cairo_t *cr, ...@@ -130,9 +130,8 @@ _set_source_rsvg_radial_gradient (cairo_t *cr,
if (radial->has_current_color) if (radial->has_current_color)
current_color_rgb = radial->current_color; current_color_rgb = radial->current_color;
/* XXX: This seems to work ok... */ pattern = cairo_pattern_create_radial (radial->fx, radial->fy, 0.0,
pattern = cairo_pattern_create_radial (radial->cx, radial->cy, 0.0, radial->cx, radial->cy, radial->r);
radial->fx, radial->fy, radial->r);
cairo_matrix_init (&matrix, cairo_matrix_init (&matrix,
radial->affine[0], radial->affine[1], radial->affine[0], radial->affine[1],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment