Fixed thumbnail creation
This commit is contained in:
parent
7b49740613
commit
7e2c85b04c
4
main.c
4
main.c
|
@ -123,9 +123,11 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
if (options->thumbnails) {
|
if (options->thumbnails) {
|
||||||
thumbs = (thumb_t*) s_malloc(filecnt * sizeof(thumb_t));
|
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]);
|
img_load_thumb(&thumbs[i], filenames[i]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
load_image();
|
load_image();
|
||||||
img_render(&img, &win);
|
img_render(&img, &win);
|
||||||
|
|
Loading…
Reference in a new issue