From 60ea34ad48f604c96f228d8f7942c5527e8a5b15 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Sun, 26 Feb 2006 02:25:19 +0000 Subject: [project @ 2006-02-26 02:25:19 by rjw] Add support for ICO files. svn path=/import/netsurf/; revision=2096 --- image/bmp.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'image/bmp.c') 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 #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, -- cgit v1.2.3