[cairo-commit] test/surface-pattern-scale-up.c test/surface-pattern-scale-up.pdf.ref.png test/surface-pattern-scale-up.ps2.ref.png test/surface-pattern-scale-up.ps3.ref.png test/surface-pattern-scale-up.ref.png

Benjamin Otte company at kemper.freedesktop.org
Mon Nov 2 03:52:50 PST 2009


 test/surface-pattern-scale-up.c           |    4 +++-
 test/surface-pattern-scale-up.pdf.ref.png |binary
 test/surface-pattern-scale-up.ps2.ref.png |binary
 test/surface-pattern-scale-up.ps3.ref.png |binary
 test/surface-pattern-scale-up.ref.png     |binary
 5 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 942a15ba9e85fa3297ad6e65270928ad3c1c0a42
Author: Benjamin Otte <otte at gnome.org>
Date:   Mon Nov 2 12:51:14 2009 +0100

    [test] Update upscale test to expose an Xlib failure
    
    By filling the background with grey, we can see that Xlib fills areas
    with black that it shouldn't. Xlib therefore now fails this test.

diff --git a/test/surface-pattern-scale-up.c b/test/surface-pattern-scale-up.c
index 3217f84..26e75c8 100644
--- a/test/surface-pattern-scale-up.c
+++ b/test/surface-pattern-scale-up.c
@@ -40,7 +40,9 @@ draw (cairo_t *cr, int width, int height)
     cairo_t * cr_surface;
     int surface_size = 6;
 
-    cairo_set_source_rgb (cr, 0, 0, 0);
+    /* Fill the background with grey, so that it's easily visible when
+     * things get overdrawn */
+    cairo_set_source_rgb (cr, 0.5, 0.5, 0.5);
     cairo_paint (cr);
 
     /* Create an image surface with my favorite four colors in each
diff --git a/test/surface-pattern-scale-up.pdf.ref.png b/test/surface-pattern-scale-up.pdf.ref.png
index 97472fa..593d058 100644
Binary files a/test/surface-pattern-scale-up.pdf.ref.png and b/test/surface-pattern-scale-up.pdf.ref.png differ
diff --git a/test/surface-pattern-scale-up.ps2.ref.png b/test/surface-pattern-scale-up.ps2.ref.png
index 7f67288..f2eac7a 100644
Binary files a/test/surface-pattern-scale-up.ps2.ref.png and b/test/surface-pattern-scale-up.ps2.ref.png differ
diff --git a/test/surface-pattern-scale-up.ps3.ref.png b/test/surface-pattern-scale-up.ps3.ref.png
index 7f67288..f2eac7a 100644
Binary files a/test/surface-pattern-scale-up.ps3.ref.png and b/test/surface-pattern-scale-up.ps3.ref.png differ
diff --git a/test/surface-pattern-scale-up.ref.png b/test/surface-pattern-scale-up.ref.png
index 821f540..41aafaf 100644
Binary files a/test/surface-pattern-scale-up.ref.png and b/test/surface-pattern-scale-up.ref.png differ


More information about the cairo-commit mailing list