From fe7cae2bfe792170826ac25543175fdd6f327b02 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Mon, 28 Jul 2008 20:56:24 +0000 Subject: Refactor Makefile a little to be slightly more organised. Made more features configurable from Makefile.config svn path=/trunk/netsurf/; revision=4775 --- riscos/filetype.c | 3 ++- riscos/window.c | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'riscos') diff --git a/riscos/filetype.c b/riscos/filetype.c index c70407fad..a4fc353bc 100644 --- a/riscos/filetype.c +++ b/riscos/filetype.c @@ -302,8 +302,9 @@ int ro_content_filetype_from_type(content_type type) { #ifdef WITH_ARTWORKS case CONTENT_ARTWORKS: return 0xd94; #endif +#ifdef WITH_NS_SVG case CONTENT_SVG: return 0xaad; - +#endif default: break; } return 0; diff --git a/riscos/window.c b/riscos/window.c index 4f80647f5..5da8662b6 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1437,7 +1437,11 @@ void ro_gui_window_redraw(wimp_draw *redraw) /* rendering textplain has no advantages using knockout rendering other * than to slow things down. */ - if (c->type == CONTENT_TEXTPLAIN || c->type == CONTENT_SVG) + if (c->type == CONTENT_TEXTPLAIN +#ifdef WITH_NS_SVG + || c->type == CONTENT_SVG +#endif + ) knockout = false; /* HTML rendering handles scale itself */ -- cgit v1.2.1