From 385d274f5b67a0db54929e204945fed129bc0730 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 15 Sep 2008 22:45:44 +0000 Subject: A bunch of fixes to the libpng binding svn path=/trunk/netsurf/; revision=5338 --- riscos/filetype.c | 4 +++- riscos/save.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'riscos') diff --git a/riscos/filetype.c b/riscos/filetype.c index a4fc353bc..dc1b9b8d2 100644 --- a/riscos/filetype.c +++ b/riscos/filetype.c @@ -278,10 +278,12 @@ int ro_content_filetype_from_type(content_type type) { case CONTENT_HTML: return 0xfaf; case CONTENT_TEXTPLAIN: return 0xfff; case CONTENT_CSS: return 0xf79; +#if defined(WITH_MNG) || defined(WITH_PNG) + case CONTENT_PNG: return 0xb60; +#endif #ifdef WITH_MNG case CONTENT_JNG: return 0xf78; case CONTENT_MNG: return 0xf84; - case CONTENT_PNG: return 0xb60; #endif #ifdef WITH_JPEG case CONTENT_JPEG: return 0xc85; diff --git a/riscos/save.c b/riscos/save.c index bb209d015..bf0bd6ee6 100644 --- a/riscos/save.c +++ b/riscos/save.c @@ -835,8 +835,10 @@ void ro_gui_save_object_native(struct content *c, char *path) #ifdef WITH_JPEG case CONTENT_JPEG: #endif -#ifdef WITH_MNG +#if defined(WITH_MNG) || defined(WITH_PNG) case CONTENT_PNG: +#endif +#ifdef WITH_MNG case CONTENT_JNG: case CONTENT_MNG: #endif -- cgit v1.2.3