mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 02:18:03 +02:00
fallback: Create pixman image for correct rectangle
This was most prominently shown by the a1-image-sample test, but multiple tests exposed the problem with the xlib-fallback code.
This commit is contained in:
parent
41fecf8e66
commit
94aa6d24b6
1 changed files with 4 additions and 4 deletions
|
|
@ -4063,8 +4063,8 @@ _cairo_image_surface_composite (cairo_operator_t op,
|
|||
extents.source.width = width;
|
||||
extents.source.height = height;
|
||||
|
||||
extents.mask.x = dst_x;
|
||||
extents.mask.y = dst_y;
|
||||
extents.mask.x = mask_x;
|
||||
extents.mask.y = mask_y;
|
||||
extents.mask.width = width;
|
||||
extents.mask.height = height;
|
||||
|
||||
|
|
@ -4088,7 +4088,7 @@ _cairo_image_surface_composite (cairo_operator_t op,
|
|||
|
||||
extents.is_bounded = _cairo_operator_bounded_by_either (op);
|
||||
|
||||
src = _pixman_image_for_pattern (src_pattern, &extents.bounded, &src_offset_x, &src_offset_y);
|
||||
src = _pixman_image_for_pattern (src_pattern, &extents.source, &src_offset_x, &src_offset_y);
|
||||
if (unlikely (src == NULL))
|
||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
|
||||
|
|
@ -4096,7 +4096,7 @@ _cairo_image_surface_composite (cairo_operator_t op,
|
|||
pixman_image_t *mask;
|
||||
int mask_offset_x, mask_offset_y;
|
||||
|
||||
mask = _pixman_image_for_pattern (mask_pattern, &extents.bounded, &mask_offset_x, &mask_offset_y);
|
||||
mask = _pixman_image_for_pattern (mask_pattern, &extents.mask, &mask_offset_x, &mask_offset_y);
|
||||
if (unlikely (mask == NULL)) {
|
||||
pixman_image_unref (src);
|
||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue