diff options
Diffstat (limited to 'preload.c')
-rw-r--r-- | preload.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,8 +4,9 @@ #include "preload.h" #include "wallpapers.h" +#include "walls_conf.h" -guint preload_max = 6; +guint preload_max = 2; static gboolean preload_thread_exit = FALSE; static GHashTable *hashtable = NULL; @@ -33,6 +34,7 @@ static void preload_hash_table_free(gpointer data) { } void preload_init() { + preload_max = conf_get_int("walls", "max_preload", 2); preload_hashtable_mutex = g_mutex_new(); preload_thread_mutex = g_mutex_new(); |