diff options
author | Sean Fox <dyntryx@gmail.com> | 2008-06-26 07:00:01 +0000 |
---|---|---|
committer | Sean Fox <dyntryx@gmail.com> | 2008-06-26 07:00:01 +0000 |
commit | bb91c0edc3a0adf5638b94c2343bffedb56ceb68 (patch) | |
tree | 15bb04c47def5989792a32c9834f7cff9fa04353 /libnsgif.h | |
parent | b6353efe0ab2e05b8d3f7e809b55ba1606036bba (diff) | |
download | libnsgif-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. */ |