summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/filetype.c3
-rw-r--r--riscos/window.c6
2 files changed, 7 insertions, 2 deletions
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 */