Set the default cache size on RISC OS to zero (off)

This commit is contained in:
Vincent Sanders 2015-06-01 11:52:41 +01:00
parent 25d7f0c657
commit 51c5f7f142
1 changed files with 6 additions and 1 deletions

View File

@ -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);