From a6d9b6a671faf6cc726af12d4f4e706262c2bd6b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 4 Apr 2005 09:47:12 +0000 Subject: 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. --- test/buffer-diff.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/buffer-diff.h') 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 -- cgit v1.2.1