summaryrefslogtreecommitdiff
path: root/test/buffer-diff.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-04-04 09:47:12 +0000
committerCarl Worth <cworth@cworth.org>2005-04-04 09:47:12 +0000
commita6d9b6a671faf6cc726af12d4f4e706262c2bd6b (patch)
treee1e6943aa108a39d579f32b579a48c8d6e1bd6d6 /test/buffer-diff.h
parent770d4c55b4b576875b73249f29ad7840fb5da7e5 (diff)
downloadcairo-a6d9b6a671faf6cc726af12d4f4e706262c2bd6b.tar.gz
Change type of data parameter from char* to unsigned char*.
Propagate the unsigned char* change down the stack. Add cast since XImage uses char* rather than unsigned char*. Fix memory leak of image data. Switch to use cairo_surface_write_png rather than a custom write_png_argb32. Add test to exercise the cairo_image_surface_create_for_png function.
Diffstat (limited to 'test/buffer-diff.h')
-rw-r--r--test/buffer-diff.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/buffer-diff.h b/test/buffer-diff.h
index 9ee51c3cf..ab5d3bd97 100644
--- a/test/buffer-diff.h
+++ b/test/buffer-diff.h
@@ -32,7 +32,9 @@
* images differ.
*/
int
-buffer_diff (char *buf_a, char *buf_b, char *buf_diff,
+buffer_diff (unsigned char *buf_a,
+ unsigned char *buf_b,
+ unsigned char *buf_diff,
int width, int height, int stride);
#endif