xlib: Fix typo in snapshotting.

We want to only copy up to the maximum height, not width...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-08-20 12:01:09 +01:00
parent 0efdc8d27e
commit 236cb8aa22

View file

@ -1395,7 +1395,7 @@ _cairo_xlib_surface_snapshot (void *abstract_surface)
extents.x = extents.y = 0;
extents.width = surface->width;
extents.height = surface->width;
extents.height = surface->height;
/* XXX notice the duplication */
return _get_image_surface (surface, &extents);