diff options
author | Jeff Muizelaar <jeff@infidigm.net> | 2005-08-05 11:23:51 +0000 |
---|---|---|
committer | Jeff Muizelaar <jeff@infidigm.net> | 2005-08-05 11:23:51 +0000 |
commit | 594ba3ef69509d9c13258449f4b636bc52d77cd4 (patch) | |
tree | f129408522fab4baee3922605dfc7804a27254ca /test/xlib-surface.c | |
parent | 5f78feda5d9819f82ff99911b90cd09e228466a9 (diff) | |
download | cairo-594ba3ef69509d9c13258449f4b636bc52d77cd4.tar.gz |
use the newly added buffer_diff_noalpha for comparing buffers of CAIRO_FORMAT_RGB24.
Diffstat (limited to 'test/xlib-surface.c')
-rw-r--r-- | test/xlib-surface.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/xlib-surface.c b/test/xlib-surface.c index 805ce18fe..0df5514fa 100644 --- a/test/xlib-surface.c +++ b/test/xlib-surface.c @@ -155,19 +155,19 @@ do_test (Display *dpy, if (offscreen) { size_t offset = 4 * (SIZE * OFFSCREEN_OFFSET + OFFSCREEN_OFFSET); - result = !buffer_diff (reference_data + offset, - test_data + offset, - diff_data + offset, - SIZE - OFFSCREEN_OFFSET, - SIZE - OFFSCREEN_OFFSET, - 4 * SIZE); + result = !buffer_diff_noalpha (reference_data + offset, + test_data + offset, + diff_data + offset, + SIZE - OFFSCREEN_OFFSET, + SIZE - OFFSCREEN_OFFSET, + 4 * SIZE); } else { - result = !buffer_diff (reference_data, - test_data, - diff_data, - SIZE, - SIZE, - 4 * SIZE); + result = !buffer_diff_noalpha (reference_data, + test_data, + diff_data, + SIZE, + SIZE, + 4 * SIZE); } fprintf (log_file, "xlib-surface: %s, %s, %s%s: %s\n", |