summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-28 17:19:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-28 17:19:35 +0100
commit51dc926c302cebcede32843e84641407189b3df9 (patch)
treea7d7f62d3ebca4ea623414b0e7a9e4248a04e569 /src/imlib.c
parent51ed4f02a56ac292a95f4347fbd0d385335a239c (diff)
parent0a006ed6767e42bbc1608400faf0fa9e008ff49c (diff)
Merge branch 'cache-size-option' of https://github.com/ulteq/feh into ulteq-cache-size-option
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imlib.c b/src/imlib.c
index 5b96e8a..48808a1 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -131,6 +131,8 @@ void init_x_and_imlib(void)
imlib_context_set_operation(IMLIB_OP_COPY);
wmDeleteWindow = XInternAtom(disp, "WM_DELETE_WINDOW", False);
+ imlib_set_cache_size(opt.cache_size * 1024 * 1024);
+
/* Initialise random numbers */
srand(getpid() * time(NULL) % ((unsigned int) -1));