From d1740d8782d90edb5b5e20dc5bcadb7a9eeeb4cc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 20 Aug 2009 21:11:11 +0100 Subject: [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. --- src/cairo-pattern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cairo-pattern.c') 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 { -- cgit v1.2.3