diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-06-01 11:52:41 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-06-01 11:52:41 +0100 |
commit | 51c5f7f142ef7afe396541da9397cb7f87af73e0 (patch) | |
tree | ca585b1911427aa942f302fc6d0ad45f1598b28d | |
parent | 25d7f0c6575f78cd361dcad9b33f889f6d9dd182 (diff) | |
download | netsurf-51c5f7f142ef7afe396541da9397cb7f87af73e0.tar.gz netsurf-51c5f7f142ef7afe396541da9397cb7f87af73e0.tar.bz2 |
Set the default cache size on RISC OS to zero (off)
-rw-r--r-- | riscos/gui.c | 7 |
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); |