diff options
author | Bert Münnich <ber.t@posteo.de> | 2015-01-04 21:19:26 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2015-01-04 21:24:43 +0100 |
commit | 47af0dd7b5e154fb64d8b4d6c5302ba905055799 (patch) | |
tree | 6d8d46f14e7330b0b18943b649f82c841da3fb5f /thumbs.h | |
parent | 9b9294bae67da4e0388e7c31d0063f4e114aa1f8 (diff) | |
download | nsxiv-47af0dd7b5e154fb64d8b4d6c5302ba905055799.tar.zst |
Cache out of view thumbnails in the background
Diffstat (limited to 'thumbs.h')
-rw-r--r-- | thumbs.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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*); |