NetSurf: Setup the nscolour module on startup.

This commit is contained in:
Michael Drake 2020-04-07 21:19:43 +01:00
parent 13e0faa261
commit efc8160d3c

View File

@ -28,6 +28,8 @@
#include "netsurf/inttypes.h"
#include "utils/config.h"
#include "utils/errors.h"
#include "utils/nscolour.h"
#include "utils/nsoption.h"
#include "utils/corestrings.h"
#include "utils/log.h"
@ -135,6 +137,10 @@ nserror netsurf_init(const char *store_path)
if (ret != NSERROR_OK)
return ret;
ret = nscolour_update();
if (ret != NSERROR_OK)
return ret;
/* set up cache limits based on the memory cache size option */
hlcache_parameters.llcache.limit = nsoption_int(memory_cache_size);