mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-15 19:00:25 +01:00
image: Fix surface acquisition if PIXMAN_HAS_ATOMIC_OPS
If PIXMAN_HAS_ATOMIC_OPS, ix and iy will be changed if the source surface is of subsurface type. They need to be reset to 0 before being passed to _cairo_matrix_to_pixman_matrix_offset() or the acquired surface will have an incorrect offset .
This commit is contained in:
parent
71e8a4c230
commit
47f70537b8
1 changed files with 4 additions and 0 deletions
|
|
@ -1417,6 +1417,10 @@ _pixman_image_for_surface (const cairo_surface_pattern_t *pattern,
|
|||
}
|
||||
}
|
||||
|
||||
#if PIXMAN_HAS_ATOMIC_OPS
|
||||
*ix = *iy = 0;
|
||||
#endif
|
||||
|
||||
if (pixman_image == NULL) {
|
||||
struct acquire_source_cleanup *cleanup;
|
||||
cairo_image_surface_t *image;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue