From b9b84ee55d6b255bcf39a4f8ca6195749ef1fc5c Mon Sep 17 00:00:00 2001 From: ulteq Date: Sun, 14 Jan 2018 17:20:14 +0100 Subject: Handle --min-dimension and --max-dimension without preload This will (by default) check the image dimension on-the-fly, but you can still do it beforehand by specifying the preload flag. --- src/filelist.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/filelist.c') diff --git a/src/filelist.c b/src/filelist.c index b569b8a..0066efd 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -464,9 +464,7 @@ int feh_cmp_format(void *file1, void *file2) void feh_prepare_filelist(void) { - if (opt.list || opt.customlist || (opt.sort > SORT_MTIME) - || opt.preload || opt.min_width || opt.min_height - || (opt.max_width != UINT_MAX) || (opt.max_height != UINT_MAX)) { + if (opt.list || opt.preload || opt.customlist || (opt.sort > SORT_MTIME)) { /* For these sort options, we have to preload images */ filelist = feh_file_info_preload(filelist); if (!gib_list_length(filelist)) -- cgit v1.2.3