From 97dea9f287048685c295ba3418f1d0e540c6a10e Mon Sep 17 00:00:00 2001 From: Philip Pemberton Date: Thu, 5 Jun 2003 13:17:55 +0000 Subject: [project @ 2003-06-05 13:17:55 by philpem] Added GIF decode support svn path=/import/netsurf/; revision=160 --- riscos/filetype.c | 3 ++- riscos/plugin.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'riscos') 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 @@ -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 @@ -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")); -- cgit v1.2.3