From 47f2bf4e28b80102f10505916be2bf4c01ce9354 Mon Sep 17 00:00:00 2001 From: Emmanuel Pacaud Date: Mon, 5 Mar 2007 15:57:28 -0800 Subject: [PATCH] Remove broken special-casing of radial gradient fx,fy under CAIRO_EXTEND_NONE Carl can't explain why he added this special-case, and removing it eliminates one failure case from the radial-gradient test matrix. --- src/cairo-svg-surface.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c index c57ca9819..6f1f66d4d 100644 --- a/src/cairo-svg-surface.c +++ b/src/cairo-svg-surface.c @@ -1290,13 +1290,8 @@ emit_radial_pattern (cairo_svg_surface_t *surface, /* SVG doesn't have a start radius, so computing now SVG focal coordinates * and emulating start radius by translating color stops. * FIXME: Handle radius1 <= radius0 */ - if (pattern->base.base.extend == CAIRO_EXTEND_NONE) { - fx = x0; - fy = y0; - } else { - fx = (r1 * x0 - r0 * x1) / (r1 - r0); - fy = (r1 * y0 - r0 * y1) / (r1 - r0); - } + fx = (r1 * x0 - r0 * x1) / (r1 - r0); + fy = (r1 * y0 - r0 * y1) / (r1 - r0); _cairo_output_stream_printf (document->xml_node_defs, "