diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/content.c | 9 | ||||
-rw-r--r-- | content/content.h | 6 | ||||
-rw-r--r-- | content/content_type.h | 2 |
3 files changed, 15 insertions, 2 deletions
diff --git a/content/content.c b/content/content.c index 1a675c3c4..ee20e7d04 100644 --- a/content/content.c +++ b/content/content.c @@ -46,6 +46,9 @@ #ifdef WITH_NS_SVG #include "image/svg.h" #endif +#ifdef WITH_RSVG +#include "image/rsvg.h" +#endif #ifdef WITH_SPRITE #include "riscos/sprite.h" #endif @@ -136,7 +139,7 @@ static const struct mime_entry mime_map[] = { #ifdef WITH_MNG {"image/png", CONTENT_PNG}, #endif -#ifdef WITH_NS_SVG +#if defined(WITH_NS_SVG) || defined (WITH_RSVG) {"image/svg", CONTENT_SVG}, {"image/svg+xml", CONTENT_SVG}, #endif @@ -310,6 +313,10 @@ static const struct handler_entry handler_map[] = { {svg_create, 0, svg_convert, 0, svg_destroy, 0, svg_redraw, 0, 0, 0, false}, #endif +#ifdef WITH_RSVG + {rsvg_create, 0, rsvg_convert, + 0, rsvg_destroy, 0, rsvg_redraw, 0, 0, 0, false}, +#endif {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false} }; #define HANDLER_MAP_COUNT (sizeof(handler_map) / sizeof(handler_map[0])) diff --git a/content/content.h b/content/content.h index 8cec5a3e7..57334fba5 100644 --- a/content/content.h +++ b/content/content.h @@ -49,6 +49,9 @@ #ifdef WITH_NS_SVG #include "image/svg.h" #endif +#ifdef WITH_RSVG +#include "image/rsvg.h" +#endif struct bitmap; @@ -171,6 +174,9 @@ struct content { #ifdef WITH_NS_SVG struct content_svg_data svg; #endif +#ifdef WITH_RSVG + struct content_rsvg_data rsvg; +#endif } data; /**< URL for refresh request, in standard form as from url_join. */ diff --git a/content/content_type.h b/content/content_type.h index 844a5723b..4b073293e 100644 --- a/content/content_type.h +++ b/content/content_type.h @@ -53,7 +53,7 @@ typedef enum { #ifdef WITH_ARTWORKS CONTENT_ARTWORKS, #endif -#ifdef WITH_NS_SVG +#if defined(WITH_NS_SVG) || defined(WITH_RSVG) CONTENT_SVG, #endif /* these must be the last two */ |