From 1ded087c6ae014b1ddfe0e223580f4255bd270a4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 13 Jul 2007 08:25:34 +0000 Subject: Support dataloading of SVG files Add internal filetype<->mimetype mapping for SVG files svn path=/trunk/netsurf/; revision=3407 --- riscos/gui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'riscos/gui.c') diff --git a/riscos/gui.c b/riscos/gui.c index 0d34af698..23ad41924 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -126,6 +126,9 @@ #ifndef FILETYPE_ARTWORKS #define FILETYPE_ARTWORKS 0xd94 #endif +#ifndef FILETYPE_SVG +#define FILETYPE_SVG 0xaad +#endif extern bool ro_plot_patterned_lines; @@ -1467,6 +1470,7 @@ void ro_msg_dataload(wimp_message *message) case osfile_TYPE_SPRITE: case osfile_TYPE_TEXT: case FILETYPE_ARTWORKS: + case FILETYPE_SVG: /* display the actual file */ url = path_to_url(message->data.data_xfer.file_name); break; @@ -1760,7 +1764,8 @@ void ro_msg_datasave(wimp_message *message) case FILETYPE_JPEG: case osfile_TYPE_SPRITE: case osfile_TYPE_TEXT: - case FILETYPE_ARTWORKS: { + case FILETYPE_ARTWORKS: + case FILETYPE_SVG: { os_error *error; dataxfer->your_ref = dataxfer->my_ref; -- cgit v1.2.3