From efc8160d3cc15c2982cbf0f5172c3e7187c0e7e0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 7 Apr 2020 21:19:43 +0100 Subject: NetSurf: Setup the nscolour module on startup. --- desktop/netsurf.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'desktop') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 547365b7c..6cc3a118f 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -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); -- cgit v1.2.3