From 7e2c85b04c2a061524a5f70c91aa8947eb7bd567 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 16 Feb 2011 16:53:35 +0100 Subject: Fixed thumbnail creation --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index c680bef..e892fa8 100644 --- a/main.c +++ b/main.c @@ -123,8 +123,10 @@ int main(int argc, char **argv) { if (options->thumbnails) { thumbs = (thumb_t*) s_malloc(filecnt * sizeof(thumb_t)); - for (i = 0; i < filecnt; ++i) + for (i = 0; i < filecnt; ++i) { + thumbs[i].pm = win_create_pixmap(&win); img_load_thumb(&thumbs[i], filenames[i]); + } } load_image(); -- cgit v1.2.3