summaryrefslogtreecommitdiff
path: root/src/filelist.c
diff options
context:
space:
mode:
authorulteq <ulteq@web.de>2018-01-14 17:20:14 +0100
committerulteq <ulteq@web.de>2018-01-14 17:25:10 +0100
commitb9b84ee55d6b255bcf39a4f8ca6195749ef1fc5c (patch)
tree4e8ab062631abb35ddcc75f0353eb983a367c740 /src/filelist.c
parent0911570bda04e4da541ef095bcdc8cc5cfd57412 (diff)
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.
Diffstat (limited to 'src/filelist.c')
-rw-r--r--src/filelist.c4
1 files changed, 1 insertions, 3 deletions
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))