From 9e8eea062a081d4ff5b7897e3fcd7b2633cc4785 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 6 Apr 2015 11:22:19 +0200 Subject: --max-dimension: ignore width/height limit of 0 pixels --- src/options.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/options.c b/src/options.c index 8fbdbfb..7e7adee 100644 --- a/src/options.c +++ b/src/options.c @@ -421,6 +421,10 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) break; case '<': XParseGeometry(optarg, &discard, &discard, &opt.max_width, &opt.max_height); + if (opt.max_width == 0) + opt.max_width = UINT_MAX; + if (opt.max_height == 0) + opt.max_height = UINT_MAX; break; case '>': XParseGeometry(optarg, &discard, &discard, &opt.min_width, &opt.min_height); -- cgit v1.2.3