[cairo-commit] cairo/test xlib-surface.c,1.5,1.6

Jeff Muizelaar commit at pdx.freedesktop.org
Fri Aug 5 11:23:53 PDT 2005


Committed by: jrmuizel

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv12790/test

Modified Files:
	xlib-surface.c 
Log Message:
2005-08-05  Jeff Muizelaar  <jeff at infidigm.net>

	* test/xlib-surface.c: (do_test): use the newly added
	buffer_diff_noalpha for comparing buffers of
	CAIRO_FORMAT_RGB24.


Index: xlib-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/test/xlib-surface.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- xlib-surface.c	1 Aug 2005 20:33:47 -0000	1.5
+++ xlib-surface.c	5 Aug 2005 18:23:51 -0000	1.6
@@ -155,19 +155,19 @@
     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",




More information about the cairo-commit mailing list