diff options
Diffstat (limited to 'image/bmp.c')
-rw-r--r-- | image/bmp.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/image/bmp.c b/image/bmp.c index b2fc59f86..1eaef0592 100644 --- a/image/bmp.c +++ b/image/bmp.c @@ -11,8 +11,6 @@ #include <stdlib.h> #include "netsurf/utils/config.h" #include "netsurf/content/content.h" -#include "netsurf/desktop/browser.h" -#include "netsurf/desktop/options.h" #include "netsurf/desktop/plotters.h" #include "netsurf/image/bitmap.h" #include "netsurf/image/bmp.h" @@ -23,8 +21,6 @@ #ifdef WITH_BMP -static void nsbmp_invalidate(struct bitmap *bitmap, void *private_word); - bool nsbmp_create(struct content *c, const char *params[]) { union content_msg_data msg_data; @@ -76,20 +72,12 @@ bool nsbmp_convert(struct content *c, int iwidth, int iheight) { c->height, c->source_size); c->size += (bmp->width * bmp->height * 4) + 16 + 44 + 100; - /* make so that the bitmap code can free our image quickly */ - bitmap_set_suspendable(bmp->bitmap, bmp, nsbmp_invalidate); - /* exit as a success */ c->bitmap = bmp->bitmap; c->status = CONTENT_STATUS_DONE; return true; } -void nsbmp_invalidate(struct bitmap *bitmap, void *private_word) { - struct bmp_image *bmp = (struct bmp_image *)private_word; - - bmp->decoded = false; -} bool nsbmp_redraw(struct content *c, int x, int y, int width, int height, |