From 7ed80af25e3eb941abc2bf0e7753315788808d54 Mon Sep 17 00:00:00 2001 From: speedie Date: Wed, 8 Mar 2023 20:18:03 +0100 Subject: [PATCH] these functions shouldn't do anything if hideimage --- libs/arg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/arg.c b/libs/arg.c index 2412420..b1b90ac 100644 --- a/libs/arg.c +++ b/libs/arg.c @@ -325,6 +325,8 @@ flipimg(const Arg *arg) void setimgpos(const Arg *arg) { + if (!image || hideimage) return; + if (imageposition < 3) { imageposition += arg->i; } else { @@ -339,6 +341,8 @@ setimggaps(const Arg *arg) { imagegaps += arg->i; + if (!image || hideimage) return; + if (imagegaps < 0) imagegaps = 0; @@ -356,7 +360,7 @@ rotateimg(const Arg *arg) return; #endif - if (!image) return; + if (!image || hideimage) return; rotation += arg->i ? arg->i : 1;