diff options
author | Carl Worth <cworth@cworth.org> | 2005-04-04 09:47:12 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-04-04 09:47:12 +0000 |
commit | a6d9b6a671faf6cc726af12d4f4e706262c2bd6b (patch) | |
tree | e1e6943aa108a39d579f32b579a48c8d6e1bd6d6 /test/buffer-diff.c | |
parent | 770d4c55b4b576875b73249f29ad7840fb5da7e5 (diff) | |
download | cairo-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.c')
-rw-r--r-- | test/buffer-diff.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/buffer-diff.c b/test/buffer-diff.c index 486aff1d6..98b914d34 100644 --- a/test/buffer-diff.c +++ b/test/buffer-diff.c @@ -31,8 +31,10 @@ * images differ. */ int -buffer_diff (char *buf_a, char *buf_b, char *buf_diff, - int width, int height, int stride) +buffer_diff (unsigned char *buf_a, + unsigned char *buf_b, + unsigned char *buf_diff, + int width, int height, int stride) { int x, y; int total_pixels_changed = 0; |