From bb91c0edc3a0adf5638b94c2343bffedb56ceb68 Mon Sep 17 00:00:00 2001 From: Sean Fox Date: Thu, 26 Jun 2008 07:00:01 +0000 Subject: Made non-critical bitmap callbacks optional (nullable in struct); assert on critical bitmap callbacks to ensure they are present svn path=/branches/dynis/libnsgif/; revision=4450 --- libnsgif.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libnsgif.h') diff --git a/libnsgif.h b/libnsgif.h index 8564b12..e0c0af7 100644 --- a/libnsgif.h +++ b/libnsgif.h @@ -74,6 +74,8 @@ typedef struct gif_bitmap_callback_vt { gif_bitmap_cb_create bitmap_create; /**< Create a bitmap. */ gif_bitmap_cb_destroy bitmap_destroy; /**< Free a bitmap. */ gif_bitmap_cb_get_buffer bitmap_get_buffer; /**< Return a pointer to the pixel data in a bitmap. */ + /** Members below are optional + */ gif_bitmap_cb_set_opaque bitmap_set_opaque; /**< Sets whether a bitmap should be plotted opaque. */ gif_bitmap_cb_test_opaque bitmap_test_opaque; /**< Tests whether a bitmap has an opaque alpha channel. */ gif_bitmap_cb_modified bitmap_modified; /**< The bitmap image has changed, so flush any persistant cache. */ -- cgit v1.2.3