From 47af0dd7b5e154fb64d8b4d6c5302ba905055799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Sun, 4 Jan 2015 21:19:26 +0100 Subject: Cache out of view thumbnails in the background --- thumbs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'thumbs.h') diff --git a/thumbs.h b/thumbs.h index f3121e5..cda2777 100644 --- a/thumbs.h +++ b/thumbs.h @@ -34,10 +34,11 @@ typedef struct { } thumb_t; typedef struct { - const fileinfo_t *files; + fileinfo_t *files; thumb_t *thumbs; const int *cnt; int *sel; + int initnext; int loadnext; int first, end; int r_first, r_end; @@ -56,10 +57,10 @@ typedef struct { void tns_clean_cache(tns_t*); -void tns_init(tns_t*, const fileinfo_t*, const int*, int*, win_t*); +void tns_init(tns_t*, fileinfo_t*, const int*, int*, win_t*); void tns_free(tns_t*); -bool tns_load(tns_t*, int, bool); +bool tns_load(tns_t*, int, bool, bool); void tns_unload(tns_t*, int); void tns_render(tns_t*); -- cgit v1.2.3