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

Andrea Canciani ranma42 at kemper.freedesktop.org
Mon May 17 13:17:02 PDT 2010


 src/cairo-quartz-surface.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 53260148ea9abacdc510826765c1d63f486add6c
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Fri May 14 21:04:22 2010 +0200

    quartz: fix repeating radial gradients on 64 bits
    
    Quartz API uses the type CGFloat, which is double on 64 bits,
    float on 32 bits architectures

diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 8feb4c0..df98ab4 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -996,7 +996,7 @@ CreateRepeatingRadialGradientFunction (cairo_quartz_surface_t *surface,
                                        cairo_rectangle_int_t *extents)
 {
     cairo_pattern_t *pat;
-    float input_value_range[2];
+    cairo_quartz_float_t input_value_range[2];
     CGPoint *inner;
     double *inner_radius;
     CGPoint *outer;
commit 0104976dc853b60de14080a749a6f729852f1b22
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Fri May 14 21:03:19 2010 +0200

    quartz: silence compiler warnings
    
    All the possible enum values have to be explicitly handled in switch statements.

diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 73363b3..8feb4c0 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -214,6 +214,8 @@ _cairo_quartz_create_cgimage (cairo_format_t format,
 	    break;
 #endif
 
+        case CAIRO_FORMAT_RGB16_565:
+        case CAIRO_FORMAT_INVALID:
 	default:
 	    return NULL;
     }
commit ac94a00a4d3acb36f011330b78d1311534fe90e0
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Fri May 14 19:33:15 2010 +0200

    quartz: fallback for A1 images on little endian archs
    
    Quartz uses a bit ordering that is consistent with cairo on big
    endian architectures, but isn't on little endian architectures.
    
    Fixes a1-mask and large-source-roi (on little endian)

diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index cf10dff..73363b3 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -208,9 +208,11 @@ _cairo_quartz_create_cgimage (cairo_format_t format,
 	    break;
 
 	case CAIRO_FORMAT_A1:
+#ifdef WORDS_BIGENDIAN
 	    bitsPerComponent = 1;
 	    bitsPerPixel = 1;
 	    break;
+#endif
 
 	default:
 	    return NULL;


More information about the cairo-commit mailing list