summaryrefslogtreecommitdiff
path: root/test/cairo-test.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-12-20 17:11:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2007-12-20 17:12:08 +0000
commit281b11aef14f04b12639028e2a76bbdc7a1a32bf (patch)
tree367ccf98a3be1e3602c9edf75b3503d52e802a60 /test/cairo-test.c
parented3fccec01257a7c52694150cda9ea1059c33585 (diff)
[cairo-test] Use CAIRO_OPERATOR_SOURCE when painting the group surface.
To correctly copy a surface onto the destination irrespective of its content requires the SOURCE operator. Forgetting to do so here causes uninitialized pixels to be mixed into the result and the failure of many tests for the similar surface. Oops...
Diffstat (limited to 'test/cairo-test.c')
-rw-r--r--test/cairo-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c
index f036163ba..d262dbb92 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -384,6 +384,7 @@ cairo_test_for_target (cairo_test_t *test,
if (similar) {
cairo_pop_group_to_source (cr);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
cairo_paint (cr);
}