diff options
author | Philip Pemberton <phil@philpem.me.uk> | 2003-06-05 13:17:55 +0000 |
---|---|---|
committer | Philip Pemberton <phil@philpem.me.uk> | 2003-06-05 13:17:55 +0000 |
commit | 97dea9f287048685c295ba3418f1d0e540c6a10e (patch) | |
tree | 202a31a73300fc54e991c59de8659c22dd71c13a /riscos | |
parent | de2c0f5d909e6192785fbaa68736631906f9db1a (diff) | |
download | netsurf-97dea9f287048685c295ba3418f1d0e540c6a10e.tar.gz netsurf-97dea9f287048685c295ba3418f1d0e540c6a10e.tar.bz2 |
[project @ 2003-06-05 13:17:55 by philpem]
Added GIF decode support
svn path=/import/netsurf/; revision=160
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/filetype.c | 3 | ||||
-rw-r--r-- | riscos/plugin.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/riscos/filetype.c b/riscos/filetype.c index 520e2617a..ca50daf3b 100644 --- a/riscos/filetype.c +++ b/riscos/filetype.c @@ -1,5 +1,5 @@ /** - * $Id: filetype.c,v 1.4 2003/05/10 11:13:34 bursa Exp $ + * $Id: filetype.c,v 1.5 2003/06/05 13:17:55 philpem Exp $ */ #include <stdlib.h> @@ -15,6 +15,7 @@ struct type_entry { char mime_type[16]; }; static const struct type_entry type_map[] = { + {0x695, "image/gif"}, {0xb60, "image/png"}, {0xc85, "image/jpeg"}, {0xf79, "text/css"}, diff --git a/riscos/plugin.c b/riscos/plugin.c index 1d395ade2..526c347d6 100644 --- a/riscos/plugin.c +++ b/riscos/plugin.c @@ -1,5 +1,5 @@ /** - * $Id: plugin.c,v 1.2 2003/06/02 21:09:50 jmb Exp $ + * $Id: plugin.c,v 1.3 2003/06/05 13:17:55 philpem Exp $ */ #include <assert.h> @@ -41,7 +41,8 @@ void plugin_fetch(struct content* content, char* url, struct box* box, /* OK, we have an image. Let's make the image handler deal with it */ - if (mime_type == CONTENT_JPEG || mime_type == CONTENT_PNG) { + if (mime_type == CONTENT_JPEG || mime_type == CONTENT_PNG || + mime_type == CONTENT_GIF) { xfree(po); LOG(("sending data to image handler")); |