diff options
author | Benjamin Otte <otte@gnome.org> | 2009-11-02 12:51:14 +0100 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-11-02 12:51:14 +0100 |
commit | 942a15ba9e85fa3297ad6e65270928ad3c1c0a42 (patch) | |
tree | 0b5d5f81b3c381b1e45f0be1c36ff17ccb232112 /test/surface-pattern-scale-up.c | |
parent | 19c411a5b8b84d31516d9c85642ad55ef5d29aba (diff) |
[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.
Diffstat (limited to 'test/surface-pattern-scale-up.c')
-rw-r--r-- | test/surface-pattern-scale-up.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/surface-pattern-scale-up.c b/test/surface-pattern-scale-up.c index 3217f844a..26e75c8c7 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 |