diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-03 12:24:14 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-03 12:27:34 +0000 |
commit | bf2a04c5ab91c93d4d188afd030b3004c67a180f (patch) | |
tree | 1eb61cce0a59962fa5107ec76ea0a797ef4f566f | |
parent | c29ab389fb2b3b91c895f2df684b0e9af8225d12 (diff) |
xlib/shm: Fix typo in creation of a SHM image
Pass along the size the caller requests, not the size of the related
drawable.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/cairo-xlib-surface-shm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c index ea047b69..1e2c6e6d 100644 --- a/src/cairo-xlib-surface-shm.c +++ b/src/cairo-xlib-surface-shm.c @@ -1135,9 +1135,8 @@ _cairo_xlib_surface_create_shm (cairo_xlib_surface_t *other, surface = NULL; if (has_shm (other)) - surface = &_cairo_xlib_shm_surface_create (other, format, - width, height, FALSE, - has_shm_pixmaps (other))->image.base; + surface = &_cairo_xlib_shm_surface_create (other, format, width, height, + FALSE, has_shm_pixmaps (other))->image.base; return surface; } @@ -1150,8 +1149,7 @@ _cairo_xlib_surface_create_shm__image (cairo_xlib_surface_t *surface, if (! has_shm(surface)) return NULL; - return &_cairo_xlib_shm_surface_create (surface, format, - surface->width, surface->height, + return &_cairo_xlib_shm_surface_create (surface, format, width, height, TRUE, 0)->image.base; } |