summaryrefslogtreecommitdiff
path: root/libnsgif.h
diff options
context:
space:
mode:
authorSean Fox <dyntryx@gmail.com>2008-06-26 07:00:01 +0000
committerSean Fox <dyntryx@gmail.com>2008-06-26 07:00:01 +0000
commitbb91c0edc3a0adf5638b94c2343bffedb56ceb68 (patch)
tree15bb04c47def5989792a32c9834f7cff9fa04353 /libnsgif.h
parentb6353efe0ab2e05b8d3f7e809b55ba1606036bba (diff)
downloadlibnsgif-bb91c0edc3a0adf5638b94c2343bffedb56ceb68.tar.gz
libnsgif-bb91c0edc3a0adf5638b94c2343bffedb56ceb68.tar.bz2
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
Diffstat (limited to 'libnsgif.h')
-rw-r--r--libnsgif.h2
1 files changed, 2 insertions, 0 deletions
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. */