diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-07-16 19:47:03 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-07-16 19:47:03 +0000 |
commit | b7bb766e95a3ffb552784ae40bac76db4651d5d9 (patch) | |
tree | 726222bd6eca51886b00faa128e97afbe667bf8a /content/content.c | |
parent | 8b0aaef01d786375543c7439a66a6ab58162fc5c (diff) | |
download | netsurf-b7bb766e95a3ffb552784ae40bac76db4651d5d9.tar.gz netsurf-b7bb766e95a3ffb552784ae40bac76db4651d5d9.tar.bz2 |
[project @ 2004-07-16 19:47:02 by rjw]
Fix for hotlist menu selection. Interface for MNG/JNG display.
svn path=/import/netsurf/; revision=1083
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c index dacb46df8..d7dd52515 100644 --- a/content/content.c +++ b/content/content.c @@ -30,6 +30,9 @@ #ifdef WITH_PNG #include "netsurf/riscos/png.h" #endif +#ifdef WITH_MNG +#include "netsurf/riscos/mng.h" +#endif #ifdef WITH_GIF #include "netsurf/riscos/gif.h" #endif @@ -73,6 +76,14 @@ static const struct mime_entry mime_map[] = { #ifdef WITH_PNG {"image/png", CONTENT_PNG}, #endif +#ifdef WITH_MNG + {"image/jng", CONTENT_JNG}, + {"image/x-jng", CONTENT_JNG}, + {"image/mng", CONTENT_MNG}, + {"image/x-mng", CONTENT_MNG}, + {"video/mng", CONTENT_MNG}, + {"video/x-mng", CONTENT_MNG}, +#endif #ifdef WITH_DRAW {"image/x-drawfile", CONTENT_DRAW}, #endif @@ -98,6 +109,9 @@ const char *content_type_name[] = { #ifdef WITH_PNG "PNG", #endif +#ifdef WITH_MNG + "MNG", +#endif #ifdef WITH_SPRITE "SPRITE", #endif @@ -162,6 +176,10 @@ static const struct handler_entry handler_map[] = { {nspng_create, nspng_process_data, nspng_convert, 0, nspng_destroy, 0, nspng_redraw, 0, 0, 0}, #endif +#ifdef WITH_MNG + {nsmng_create, nsmng_process_data, nsmng_convert, + 0, nsmng_destroy, 0, nsmng_redraw, 0, 0, 0}, +#endif #ifdef WITH_SPRITE {sprite_create, sprite_process_data, sprite_convert, 0, sprite_destroy, 0, sprite_redraw, 0, 0, 0}, |