[cairo-commit] test/coverage.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Sep 30 08:19:39 PDT 2014


 test/coverage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2144e7f48ba49d5bdb4a0dd1fb672be9d313fb65
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Sep 30 16:18:34 2014 +0100

    test: Fix coverage-abutting
    
    Using CAIRO_OPERATOR_OVER in case causes oversampling of the coincident
    edges, to measure coverage we should only use ADD. :|
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/test/coverage.c b/test/coverage.c
index 2f0e212..12225c3 100644
--- a/test/coverage.c
+++ b/test/coverage.c
@@ -299,7 +299,7 @@ abutting (cairo_t *cr, int width, int height)
 #if GENERATE_REFERENCE
     cairo_paint (cr);
 #else
-    cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
+    cairo_set_operator (cr, CAIRO_OPERATOR_ADD);
 
     for (y = 0; y < 16; y++) {
 	for (x = 0; x < 16; x++) {


More information about the cairo-commit mailing list