mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-07 00:50:19 +01:00
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:
parent
4e0f0d9425
commit
712447856d
1 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue