diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-14 20:02:09 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-14 20:02:09 +0100 |
commit | efc26882bde6d757e3111fa4684201ff61b30a4c (patch) | |
tree | abd3db7d11ae2acb61ffbea63093c85671a0b28b /src | |
parent | 1ad808fd9b45fe40b26458989c8abd74122e0675 (diff) | |
download | libnsbmp-efc26882bde6d757e3111fa4684201ff61b30a4c.tar.gz libnsbmp-efc26882bde6d757e3111fa4684201ff61b30a4c.tar.bz2 |
Remove suspend/invalidate stuff.
Diffstat (limited to 'src')
-rw-r--r-- | src/libnsbmp.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libnsbmp.c b/src/libnsbmp.c index 976b513..bcbf21a 100644 --- a/src/libnsbmp.c +++ b/src/libnsbmp.c @@ -115,7 +115,6 @@ static bmp_result bmp_decode_rgb16(bmp_image *bmp, uint8_t **start, int bytes); static bmp_result bmp_decode_rgb(bmp_image *bmp, uint8_t **start, int bytes); static bmp_result bmp_decode_mask(bmp_image *bmp, uint8_t *data, int bytes); static bmp_result bmp_decode_rle(bmp_image *bmp, uint8_t *data, int bytes, int size); -static void bmp_invalidate(void *bitmap, void *private_word); @@ -553,7 +552,6 @@ static bmp_result bmp_analyse_header(bmp_image *bmp, uint8_t *data) { */ if (bmp->ico) bmp->bitmap_offset = (intptr_t)data - (intptr_t)bmp->bmp_data; - bmp->bitmap_callbacks.bitmap_set_suspendable(bmp->bitmap, bmp, bmp_invalidate); return BMP_OK; } @@ -593,22 +591,6 @@ bmp_image *ico_find(ico_collection *ico, uint16_t width, uint16_t height) { /** - * Invalidates a BMP - * - * This function sets the BMP into a state such that the bitmap image data - * can be released from memory. - * - * \param bmp the BMP image to invalidate - */ -static void bmp_invalidate(void *bitmap, void *private_word) { - bmp_image *bmp = (bmp_image *)private_word; - UNUSED(bitmap); - - bmp->decoded = false; -} - - -/** * Decode a BMP * * This function decodes the BMP data such that bmp->bitmap is a valid |