[cairo-commit] src/cairo-quartz-image-surface.c
Vladimir Vukicevic
vladimir at kemper.freedesktop.org
Fri Jul 18 15:55:15 PDT 2008
src/cairo-quartz-image-surface.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 96c9e2a1a8c96b22fe1ae1fb76e5885003148b68
Author: Vladimir Vukicevic <vladimir at pobox.com>
Date: Fri Jul 18 15:55:11 2008 -0700
Fix cairo-quartz-image-surface compilation error
diff --git a/src/cairo-quartz-image-surface.c b/src/cairo-quartz-image-surface.c
index c3f73d1..5c35fe3 100644
--- a/src/cairo-quartz-image-surface.c
+++ b/src/cairo-quartz-image-surface.c
@@ -275,7 +275,7 @@ static const cairo_surface_backend_t cairo_quartz_image_surface_backend = {
/**
* cairo_quartz_image_surface_create
- * @image_surface: a cairo image surface to wrap with a quartz image surface
+ * @surface: a cairo image surface to wrap with a quartz image surface
*
* Creates a Quartz surface backed by a CGImageRef that references the
* given image surface. The resulting surface can be rendered quickly
@@ -289,7 +289,7 @@ static const cairo_surface_backend_t cairo_quartz_image_surface_backend = {
* Since: 1.6
*/
cairo_surface_t *
-cairo_quartz_image_surface_create (cairo_surface_t *image_surface)
+cairo_quartz_image_surface_create (cairo_surface_t *surface)
{
cairo_quartz_image_surface_t *qisurf;
@@ -300,10 +300,10 @@ cairo_quartz_image_surface_create (cairo_surface_t *image_surface)
cairo_format_t format;
unsigned char *data;
- if (cairo_surface_get_type(image_surface) != CAIRO_SURFACE_TYPE_IMAGE)
+ if (cairo_surface_get_type(surface) != CAIRO_SURFACE_TYPE_IMAGE)
return SURFACE_ERROR_TYPE_MISMATCH;
- image_surface = (cairo_image_surface_t*) image_surface;
+ image_surface = (cairo_image_surface_t*) surface;
width = image_surface->width;
height = image_surface->height;
stride = image_surface->stride;
@@ -329,7 +329,7 @@ cairo_quartz_image_surface_create (cairo_surface_t *image_surface)
* be released via the callback (which will be called in
* case of failure.)
*/
- cairo_surface_reference (image_surface);
+ cairo_surface_reference (surface);
image = _cairo_quartz_create_cgimage (format,
width, height,
More information about the cairo-commit
mailing list