[cairo-commit] src/cairo-quartz-surface.c
Vladimir Vukicevic
vladimir at kemper.freedesktop.org
Wed Jul 18 13:08:54 PDT 2007
src/cairo-quartz-surface.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
New commits:
diff-tree 76c32f899af63649bf911533a2ed6b42e617da41 (from 290daee4ce26a931a15425f380ed4f495a4bd3c1)
Author: Vladimir Vukicevic <vladimir at frankenmac.mshome.net>
Date: Mon Jul 2 15:09:21 2007 +0200
[fixpt] Update quartz surface for new types
diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index b63b139..9911b4a 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -374,10 +374,10 @@ _cairo_quartz_cairo_gradient_pattern_to_
CGFunctionRef gradFunc;
CGColorSpaceRef rgb = CGColorSpaceCreateDeviceRGB();
- start = CGPointMake (_cairo_fixed_to_double (lpat->gradient.p1.x) - x0,
- _cairo_fixed_to_double (lpat->gradient.p1.y) - y0);
- end = CGPointMake (_cairo_fixed_to_double (lpat->gradient.p2.x) - x0,
- _cairo_fixed_to_double (lpat->gradient.p2.y) - y0);
+ start = CGPointMake (_cairo_fixed_to_double (lpat->p1.x) - x0,
+ _cairo_fixed_to_double (lpat->p1.y) - y0);
+ end = CGPointMake (_cairo_fixed_to_double (lpat->p2.x) - x0,
+ _cairo_fixed_to_double (lpat->p2.y) - y0);
cairo_pattern_reference (abspat);
gradFunc = CreateGradientFunction ((cairo_gradient_pattern_t*) lpat);
@@ -398,18 +398,18 @@ _cairo_quartz_cairo_gradient_pattern_to_
CGFunctionRef gradFunc;
CGColorSpaceRef rgb = CGColorSpaceCreateDeviceRGB();
- 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);
+ start = CGPointMake (_cairo_fixed_to_double (rpat->c1.x) - x0,
+ _cairo_fixed_to_double (rpat->c1.y) - y0);
+ end = CGPointMake (_cairo_fixed_to_double (rpat->c2.x) - x0,
+ _cairo_fixed_to_double (rpat->c2.y) - y0);
cairo_pattern_reference (abspat);
gradFunc = CreateGradientFunction ((cairo_gradient_pattern_t*) rpat);
shading = CGShadingCreateRadial (rgb,
start,
- _cairo_fixed_to_double (rpat->gradient.c1.radius),
+ _cairo_fixed_to_double (rpat->r1),
end,
- _cairo_fixed_to_double (rpat->gradient.c2.radius),
+ _cairo_fixed_to_double (rpat->r2),
gradFunc,
true, true);
CGColorSpaceRelease(rgb);
More information about the cairo-commit
mailing list