mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 17:54:33 +03:00
NetSurf: Setup the nscolour module on startup.
This commit is contained in:
parent
13e0faa261
commit
efc8160d3c
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
#include "netsurf/inttypes.h"
|
#include "netsurf/inttypes.h"
|
||||||
#include "utils/config.h"
|
#include "utils/config.h"
|
||||||
|
#include "utils/errors.h"
|
||||||
|
#include "utils/nscolour.h"
|
||||||
#include "utils/nsoption.h"
|
#include "utils/nsoption.h"
|
||||||
#include "utils/corestrings.h"
|
#include "utils/corestrings.h"
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
@ -135,6 +137,10 @@ nserror netsurf_init(const char *store_path)
|
|||||||
if (ret != NSERROR_OK)
|
if (ret != NSERROR_OK)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
ret = nscolour_update();
|
||||||
|
if (ret != NSERROR_OK)
|
||||||
|
return ret;
|
||||||
|
|
||||||
/* set up cache limits based on the memory cache size option */
|
/* set up cache limits based on the memory cache size option */
|
||||||
hlcache_parameters.llcache.limit = nsoption_int(memory_cache_size);
|
hlcache_parameters.llcache.limit = nsoption_int(memory_cache_size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user