From e49d38d6f947b11570627b7354641e03f9200cef Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Sat, 16 Aug 2014 22:21:51 +0200 Subject: Fixed wrong thumbnail-to-file mappings caused by file deletions --- thumbs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'thumbs.h') 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); -- cgit v1.2.3