diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-08-16 22:21:51 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-08-16 22:21:51 +0200 |
commit | e49d38d6f947b11570627b7354641e03f9200cef (patch) | |
tree | 4b0219c49756b41d4e6effab96b2d63b6bf49ac3 /thumbs.h | |
parent | e267dc7793df0c3d8b1dcc48575a11d402df5499 (diff) |
Fixed wrong thumbnail-to-file mappings caused by file deletions
Diffstat (limited to 'thumbs.h')
-rw-r--r-- | thumbs.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |