From 8c53781d09f39c69965b4245d1b0d9b3a9ecf406 Mon Sep 17 00:00:00 2001 From: qustrolabe Date: Sun, 11 Sep 2022 22:34:23 +0300 Subject: [PATCH 1/2] Fix opt.montage not being used --- src/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/options.c b/src/options.c index d3524f78..8118a58f 100644 --- a/src/options.c +++ b/src/options.c @@ -633,6 +633,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) break; case OPTION_montage: opt.index = 1; + opt.montage = 1; break; case OPTION_reverse: opt.reverse = 1; From 5891f11e47e2770d2d7d1479a55f4defcb56daa3 Mon Sep 17 00:00:00 2001 From: qustrolabe Date: Sun, 11 Sep 2022 22:36:07 +0300 Subject: [PATCH 2/2] Fix horizontal gaps in montage mode --- src/index.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.c b/src/index.c index 4c003214..e835e462 100644 --- a/src/index.c +++ b/src/index.c @@ -94,7 +94,11 @@ void init_index_mode(void) text_area_h = fh + 5; /* This includes the text area for index data */ - tot_thumb_h = opt.thumb_h + text_area_h; + if(opt.montage) { + tot_thumb_h = opt.thumb_h; + } else { + tot_thumb_h = opt.thumb_h + text_area_h; + } /* Use bg image dimensions for default size */ if (opt.bg && opt.bg_file) {