kwo pushed a commit to branch master. http://git.enlightenment.org/legacy/imlib2.git/commit/?id=6a2e839313217606b5273a05c0c1392dd7ab4a18
commit 6a2e839313217606b5273a05c0c1392dd7ab4a18 Author: Kim Woelders <k...@woelders.dk> Date: Mon Feb 5 17:39:32 2018 +0100 Add IMLIB2_XIMAGE_CACHE_COUNT to enable testing the ximage cache --- src/lib/ximage.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/ximage.c b/src/lib/ximage.c index e54c7c2..901860f 100644 --- a/src/lib/ximage.c +++ b/src/lib/ximage.c @@ -82,6 +82,17 @@ ShmCheck(Display * d) printf("%s: x_does_shm=%d x_does_shm_fd=%d\n", __func__, x_does_shm, x_does_shm_fd); } + + /* Set ximage cache list_max_count */ + s = getenv("IMLIB2_XIMAGE_CACHE_COUNT"); + if (s) + { + val = atoi(s); + if (val > 0) + list_max_count = val; + + printf("%s: list_max_count=%d\n", __func__, list_max_count); + } } XImage * --