summaryrefslogtreecommitdiff
path: root/src/cairo-quartz-image-surface.c
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 /src/cairo-quartz-image-surface.c
parentb377380b7a5fe0982d057975cd87f6b652d3b0ff (diff)
downloadcairo-9f92901b0910563f2523ebe7289abd9094271c98.tar.gz
Remove quartz-image extents.
We never used the x,y portion of the extents so we might as well take it out.
Diffstat (limited to 'src/cairo-quartz-image-surface.c')
-rw-r--r--src/cairo-quartz-image-surface.c15
1 files changed, 10 insertions, 5 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;