mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
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:
parent
0efdc8d27e
commit
236cb8aa22
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue