summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2011-04-21 15:23:14 -0400
committerJeff Muizelaar <jmuizelaar@mozilla.com>2011-04-21 15:23:14 -0400
commit9f92901b0910563f2523ebe7289abd9094271c98 (patch)
tree82567ec5c8bf63f7c9935c812a32df85c2f006bd
parentb377380b7a5fe0982d057975cd87f6b652d3b0ff (diff)
Remove quartz-image extents.
We never used the x,y portion of the extents so we might as well take it out.
-rw-r--r--src/cairo-quartz-image-surface.c15
-rw-r--r--src/cairo-quartz-private.h2
2 files changed, 11 insertions, 6 deletions
diff --git a/src/cairo-quartz-image-surface.c b/src/cairo-quartz-image-surface.c
index 9751ae1e7..81ed5fe28 100644
--- a/src/cairo-quartz-image-surface.c
+++ b/src/cairo-quartz-image-surface.c
@@ -105,7 +105,10 @@ _cairo_quartz_image_surface_acquire_dest_image (void *asurface,
cairo_quartz_image_surface_t *surface = (cairo_quartz_image_surface_t *) asurface;
*image_out = surface->imageSurface;
- *image_rect = surface->extents;
+ image_rect->x = 0;
+ image_rect->y = 0;
+ image_rect->width = surface->width;
+ image_rect->height = surface->height;
*image_extra = NULL;
return CAIRO_STATUS_SUCCESS;
@@ -117,7 +120,10 @@ _cairo_quartz_image_surface_get_extents (void *asurface,
{
cairo_quartz_image_surface_t *surface = (cairo_quartz_image_surface_t *) asurface;
- *extents = surface->extents;
+ extents->x = 0;
+ extents->y = 0;
+ extents->width = surface->width;
+ extents->height = surface->height;
return TRUE;
}
@@ -263,9 +269,8 @@ cairo_quartz_image_surface_create (cairo_surface_t *surface)
NULL, /* device */
_cairo_content_from_format (format));
- qisurf->extents.x = qisurf->extents.y = 0;
- qisurf->extents.width = width;
- qisurf->extents.height = height;
+ qisurf->width = width;
+ qisurf->height = height;
qisurf->image = image;
qisurf->imageSurface = image_surface;
diff --git a/src/cairo-quartz-private.h b/src/cairo-quartz-private.h
index beac8847a..7edc74247 100644
--- a/src/cairo-quartz-private.h
+++ b/src/cairo-quartz-private.h
@@ -74,7 +74,7 @@ typedef struct cairo_quartz_surface {
typedef struct cairo_quartz_image_surface {
cairo_surface_t base;
- cairo_rectangle_int_t extents;
+ int width, height;
CGImageRef image;
cairo_image_surface_t *imageSurface;