Fix yet another backend (quartz) for the gradient renaming

So it looks like it took us three commits before we finally got
all of the users of inner/outer switched to c1/c2. Hopefully
someday we'll have the compiler passing over all of cairo's
source code even if the backends aren't available to be run
on a particular system.
This commit is contained in:
Carl Worth 2007-03-02 03:15:35 -08:00
parent 4e0f0d9425
commit 712447856d

View file

@ -411,18 +411,18 @@ _cairo_nquartz_cairo_gradient_pattern_to_quartz (cairo_pattern_t *abspat)
CGFunctionRef gradFunc;
CGColorSpaceRef rgb = CGColorSpaceCreateDeviceRGB();
start = CGPointMake (_cairo_fixed_to_double (rpat->gradient.inner.x) - x0,
_cairo_fixed_to_double (rpat->gradient.inner.y) - y0);
end = CGPointMake (_cairo_fixed_to_double (rpat->gradient.outer.x) - x0,
_cairo_fixed_to_double (rpat->gradient.outer.y) - y0);
start = CGPointMake (_cairo_fixed_to_double (rpat->gradient.c1.x) - x0,
_cairo_fixed_to_double (rpat->gradient.c1.y) - y0);
end = CGPointMake (_cairo_fixed_to_double (rpat->gradient.c2.x) - x0,
_cairo_fixed_to_double (rpat->gradient.c2.y) - y0);
cairo_pattern_reference (abspat);
gradFunc = CreateGradientFunction ((cairo_gradient_pattern_t*) rpat);
shading = CGShadingCreateRadial (rgb,
start,
_cairo_fixed_to_double (rpat->gradient.inner.radius),
_cairo_fixed_to_double (rpat->gradient.c1.radius),
end,
_cairo_fixed_to_double (rpat->gradient.outer.radius),
_cairo_fixed_to_double (rpat->gradient.c2.radius),
gradFunc,
true, true);
CGColorSpaceRelease(rgb);