summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-08-20 21:11:11 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-08-29 17:07:37 +0100
commitd1740d8782d90edb5b5e20dc5bcadb7a9eeeb4cc (patch)
tree10dca55aee6a07d9c41f581778d6731eda807772
parent958f7ab1238b8242975d3ea774c26d23e090e70c (diff)
[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.
-rw-r--r--src/cairo-pattern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index e6210589..149cdc73 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -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 {