summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Fox <dyntryx@gmail.com>2008-07-01 10:28:47 +0000
committerSean Fox <dyntryx@gmail.com>2008-07-01 10:28:47 +0000
commit8e9497e6d751521fe493bc201b56d5b0594eb7ab (patch)
treefa789648fd8a594056d8b171541c91f9d6d1d53e
parentf93d20f3f5dbb40e706a951d628140baeb4880db (diff)
downloadlibnsgif-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.c4
-rw-r--r--libnsgif.h2
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;
diff --git a/libnsgif.h b/libnsgif.h
index 5c35343..76207c9 100644
--- a/libnsgif.h
+++ b/libnsgif.h
@@ -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);