summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-04-07 21:19:43 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2020-04-07 21:32:27 +0100
commitefc8160d3cc15c2982cbf0f5172c3e7187c0e7e0 (patch)
tree2cc3f917a0e2c04f9155b1f9b8399a42c25cb931 /desktop
parent13e0faa2612de95c2e714b44ffa4030741d04321 (diff)
downloadnetsurf-efc8160d3cc15c2982cbf0f5172c3e7187c0e7e0.tar.gz
netsurf-efc8160d3cc15c2982cbf0f5172c3e7187c0e7e0.tar.bz2
NetSurf: Setup the nscolour module on startup.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/netsurf.c6
1 files changed, 6 insertions, 0 deletions
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);