Commit 37bedd44 authored by Dom Lachowicz's avatar Dom Lachowicz

implement radial gradients for cario; seems to work ok

parent ccf1f8e7
......@@ -4,6 +4,7 @@
(rsvg_cairo_render_image): Drawing images now largely works
(rsvg_cairo_push_discrete_layer): Largely implement
(rsvg_cairo_pop_discrete_layer): Largely implement
(_set_source_rsvg_radial_gradient): Make this work for the few tests I have
2005-08-04 Carl Worth <cworth@cworth.org>
......
......@@ -98,8 +98,8 @@ _set_source_rsvg_radial_gradient (cairo_t *cr,
if (radial->has_current_color)
current_color_rgb = radial->current_color;
/* XXX: These are most likely quite bogus. */
pattern = cairo_pattern_create_radial (radial->cx, radial->cy, radial->r,
/* XXX: This seems to work ok... */
pattern = cairo_pattern_create_radial (radial->cx, radial->cy, 0.0,
radial->fx, radial->fy, radial->r);
_pattern_add_rsvg_color_stops (pattern, radial->super.children,
......
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