[cairo-commit] src/cairo-quartz-surface.c

Carl Worth cworth at kemper.freedesktop.org
Fri Mar 2 03:15:44 PST 2007


 src/cairo-quartz-surface.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

New commits:
diff-tree 712447856dc5cf559fcdbceaf902a39fd5eddef9 (from 4e0f0d9425e2677e75681b2416e7ee4c4e87440c)
Author: Carl Worth <cworth at cworth.org>
Date:   Fri Mar 2 03:15:35 2007 -0800

    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.

diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index cd35088..064f6d1 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -411,18 +411,18 @@ _cairo_nquartz_cairo_gradient_pattern_to
 	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);


More information about the cairo-commit mailing list