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

Vladimir Vukicevic vladimir at kemper.freedesktop.org
Sat Mar 8 17:48:52 PST 2008


 src/cairo-quartz-image-surface.c |    4 ++--
 src/cairo-quartz-surface.c       |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 94e41d5565ef72a0ef6e0235545c660aaf92b825
Author: Vladimir Vukicevic <vladimir at pobox.com>
Date:   Sat Mar 8 17:45:47 2008 -0800

    [quartz] Don't force interpolation off for images
    
    Creating a CGImage with interpolation set to FALSE means that
    it will never be interpolated; otherwise the interoplation
    is controlled by the destination context's interpolation
    quality setting.

diff --git a/src/cairo-quartz-image-surface.c b/src/cairo-quartz-image-surface.c
index 541fa82..8defe53 100644
--- a/src/cairo-quartz-image-surface.c
+++ b/src/cairo-quartz-image-surface.c
@@ -225,7 +225,7 @@ _cairo_quartz_image_surface_flush (void *asurface)
 					     surface->imageSurface->height,
 					     surface->imageSurface->stride,
 					     surface->imageSurface->data,
-					     FALSE,
+					     TRUE,
 					     NULL,
 					     DataProviderReleaseCallback,
 					     surface->imageSurface);
@@ -338,7 +338,7 @@ cairo_quartz_image_surface_create (cairo_surface_t *surface)
 					  width, height,
 					  stride,
 					  data,
-					  FALSE,
+					  TRUE,
 					  NULL,
 					  DataProviderReleaseCallback,
 					  surface);
diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 4fe3f25..0a9b2b6 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -570,7 +570,7 @@ _cairo_surface_to_cgimage (cairo_surface_t *target,
 					   isurf->height,
 					   isurf->stride,
 					   isurf->data,
-					   FALSE,
+					   TRUE,
 					   NULL, NULL, NULL);
 
     image = CGImageCreateCopy (image2);


More information about the cairo-commit mailing list