From 8e9497e6d751521fe493bc201b56d5b0594eb7ab Mon Sep 17 00:00:00 2001 From: Sean Fox Date: Tue, 1 Jul 2008 10:28:47 +0000 Subject: Corrected the return type for bitmap_get_buffer in the gif decoding example svn path=/branches/dynis/libnsgif/; revision=4488 --- examples/decode_gif.c | 4 ++-- 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; 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); -- cgit v1.2.3