summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-06-01 11:52:41 +0100
committerVincent Sanders <vince@kyllikki.org>2015-06-01 11:52:41 +0100
commit51c5f7f142ef7afe396541da9397cb7f87af73e0 (patch)
treeca585b1911427aa942f302fc6d0ad45f1598b28d /riscos
parent25d7f0c6575f78cd361dcad9b33f889f6d9dd182 (diff)
downloadnetsurf-51c5f7f142ef7afe396541da9397cb7f87af73e0.tar.gz
netsurf-51c5f7f142ef7afe396541da9397cb7f87af73e0.tar.bz2
Set the default cache size on RISC OS to zero (off)
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index cad5a6e16..3a47d088b 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -305,10 +305,15 @@ static nserror set_defaults(struct nsoption_s *defaults)
if (nsoption_charp(ca_bundle) == NULL ||
nsoption_charp(cookie_file) == NULL ||
nsoption_charp(cookie_jar) == NULL) {
- LOG("Failed initialising string options");
+ LOG("Failed initialising default options");
return NSERROR_BAD_PARAMETER;
}
+ /* RISC OS platform does not generally benefit from disc cache
+ * so the default should be off.
+ */
+ nsoption_set_uint(disc_cache_size, 0);
+
/* set default system colours for riscos ui */
set_colour_from_wimp(defaults, wimp_COLOUR_BLACK, NSOPTION_sys_colour_ActiveBorder, 0x00000000);
set_colour_from_wimp(defaults, wimp_COLOUR_CREAM, NSOPTION_sys_colour_ActiveCaption, 0x00dddddd);