summaryrefslogtreecommitdiffstats
path: root/thumbs.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-08-16 22:21:51 +0200
committerBert Münnich <ber.t@posteo.de>2014-08-16 22:21:51 +0200
commite49d38d6f947b11570627b7354641e03f9200cef (patch)
tree4b0219c49756b41d4e6effab96b2d63b6bf49ac3 /thumbs.h
parente267dc7793df0c3d8b1dcc48575a11d402df5499 (diff)
downloadnsxiv-e49d38d6f947b11570627b7354641e03f9200cef.tar.zst
Fixed wrong thumbnail-to-file mappings caused by file deletions
Diffstat (limited to 'thumbs.h')
-rw-r--r--thumbs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/thumbs.h b/thumbs.h
index 1aeaccb..d2a6b83 100644
--- a/thumbs.h
+++ b/thumbs.h
@@ -26,7 +26,6 @@
#include "window.h"
typedef struct {
- const fileinfo_t *file;
Imlib_Image im;
int w;
int h;
@@ -36,6 +35,7 @@ typedef struct {
} thumb_t;
typedef struct {
+ const fileinfo_t *files;
thumb_t *thumbs;
int cap;
int cnt;
@@ -54,10 +54,10 @@ typedef struct {
void tns_clean_cache(tns_t*);
-void tns_init(tns_t*, int, win_t*, int*);
+void tns_init(tns_t*, const fileinfo_t*, int, int*, win_t*);
void tns_free(tns_t*);
-bool tns_load(tns_t*, int, const fileinfo_t*, bool);
+bool tns_load(tns_t*, int, bool);
void tns_render(tns_t*);
void tns_mark(tns_t*, int, bool);