mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 02:58:02 +02:00
[pattern] Ensure that no repeated pattern is clipped
Previously the pattern_acquire_surface routine only had to worry about handling extend modes NONE or REPEAT and so the test for ! REPEAT sufficed when what was actually intended was a test for NONE.
This commit is contained in:
parent
958f7ab123
commit
d1740d8782
1 changed files with 1 additions and 1 deletions
|
|
@ -2116,7 +2116,7 @@ _cairo_pattern_acquire_surface_for_surface (const cairo_surface_pattern_t *pat
|
|||
sampled_area.y += ty;
|
||||
|
||||
if ( _cairo_surface_get_extents (surface, &extents)) {
|
||||
if (attr->extend != CAIRO_EXTEND_REPEAT) {
|
||||
if (attr->extend == CAIRO_EXTEND_NONE) {
|
||||
/* Never acquire a larger area than the source itself */
|
||||
is_empty = _cairo_rectangle_intersect (&extents, &sampled_area);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue