diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-02-26 02:25:19 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-02-26 02:25:19 +0000 |
commit | 60ea34ad48f604c96f228d8f7942c5527e8a5b15 (patch) | |
tree | 81afbe5a766c42b7cc1b3036be990c8fcda299c5 /image/bmp.c | |
parent | da4a9313f1260531ec3dde07b32c122f120f695c (diff) | |
download | netsurf-60ea34ad48f604c96f228d8f7942c5527e8a5b15.tar.gz netsurf-60ea34ad48f604c96f228d8f7942c5527e8a5b15.tar.bz2 |
[project @ 2006-02-26 02:25:19 by rjw]
Add support for ICO files.
svn path=/import/netsurf/; revision=2096
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, |