diff options
author | Sean Fox <dyntryx@gmail.com> | 2008-07-01 10:28:47 +0000 |
---|---|---|
committer | Sean Fox <dyntryx@gmail.com> | 2008-07-01 10:28:47 +0000 |
commit | 8e9497e6d751521fe493bc201b56d5b0594eb7ab (patch) | |
tree | fa789648fd8a594056d8b171541c91f9d6d1d53e | |
parent | f93d20f3f5dbb40e706a951d628140baeb4880db (diff) | |
download | libnsgif-8e9497e6d751521fe493bc201b56d5b0594eb7ab.tar.gz libnsgif-8e9497e6d751521fe493bc201b56d5b0594eb7ab.tar.bz2 |
Corrected the return type for bitmap_get_buffer in the gif decoding example
svn path=/branches/dynis/libnsgif/; revision=4488
-rw-r--r-- | examples/decode_gif.c | 4 | ||||
-rw-r--r-- | libnsgif.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/decode_gif.c b/examples/decode_gif.c index fc508fd..6f77fb1 100644 --- a/examples/decode_gif.c +++ b/examples/decode_gif.c @@ -31,7 +31,7 @@ void warning(const char *context, int code); void *bitmap_create(int width, int height); void bitmap_set_opaque(void *bitmap, bool opaque); bool bitmap_test_opaque(void *bitmap); -char *bitmap_get_buffer(void *bitmap); +unsigned char *bitmap_get_buffer(void *bitmap); void bitmap_destroy(void *bitmap); void bitmap_modified(void *bitmap); @@ -199,7 +199,7 @@ bool bitmap_test_opaque(void *bitmap) } -char *bitmap_get_buffer(void *bitmap) +unsigned char *bitmap_get_buffer(void *bitmap) { assert(bitmap); return bitmap; @@ -63,7 +63,7 @@ typedef struct gif_frame { */ typedef void* (*gif_bitmap_cb_create)(int width, int height); typedef void (*gif_bitmap_cb_destroy)(void *bitmap); -typedef char* (*gif_bitmap_cb_get_buffer)(void *bitmap); +typedef unsigned char* (*gif_bitmap_cb_get_buffer)(void *bitmap); typedef void (*gif_bitmap_cb_set_opaque)(void *bitmap, bool opaque); typedef bool (*gif_bitmap_cb_test_opaque)(void *bitmap); typedef void (*gif_bitmap_cb_modified)(void *bitmap); |