summaryrefslogtreecommitdiff
path: root/src/cairo.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 /src/cairo.h
parent770d4c55b4b576875b73249f29ad7840fb5da7e5 (diff)
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 'src/cairo.h')
-rw-r--r--src/cairo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo.h b/src/cairo.h
index 7cd4de779..7fbda3e3a 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -179,7 +179,7 @@ typedef enum cairo_format {
*/
void
cairo_set_target_image (cairo_t *cr,
- char *data,
+ unsigned char *data,
cairo_format_t format,
int width,
int height,
@@ -914,7 +914,7 @@ cairo_image_surface_create (cairo_format_t format,
int height);
cairo_surface_t *
-cairo_image_surface_create_for_data (char *data,
+cairo_image_surface_create_for_data (unsigned char *data,
cairo_format_t format,
int width,
int height,