diff options
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/render/box.c b/render/box.c index d763ed8a1..fdda43c94 100644 --- a/render/box.c +++ b/render/box.c @@ -24,10 +24,10 @@ #include "netsurf/render/html.h" #ifdef riscos #include "netsurf/desktop/gui.h" +#endif #ifdef WITH_PLUGIN #include "netsurf/riscos/plugin.h" #endif -#endif #define NDEBUG #include "netsurf/utils/log.h" #include "netsurf/utils/messages.h" @@ -781,9 +781,20 @@ struct box_result box_br(xmlNode *n, struct box_status *status, } static const content_type image_types[] = { - CONTENT_JPEG, CONTENT_GIF, -#ifdef riscos - CONTENT_PNG, CONTENT_SPRITE, CONTENT_DRAW, +#ifdef WITH_JPEG + CONTENT_JPEG, +#endif +#ifdef WITH_GIF + CONTENT_GIF, +#endif +#ifdef WITH_PNG + CONTENT_PNG, +#endif +#ifdef WITH_SPRITE + CONTENT_SPRITE, +#endif +#ifdef WITH_DRAW + CONTENT_DRAW, #endif CONTENT_UNKNOWN }; |