these functions shouldn't do anything if hideimage

This commit is contained in:
speedie 2023-03-08 20:18:03 +01:00
parent a0659d2fd7
commit 7ed80af25e

View file

@ -325,6 +325,8 @@ flipimg(const Arg *arg)
void void
setimgpos(const Arg *arg) setimgpos(const Arg *arg)
{ {
if (!image || hideimage) return;
if (imageposition < 3) { if (imageposition < 3) {
imageposition += arg->i; imageposition += arg->i;
} else { } else {
@ -339,6 +341,8 @@ setimggaps(const Arg *arg)
{ {
imagegaps += arg->i; imagegaps += arg->i;
if (!image || hideimage) return;
if (imagegaps < 0) if (imagegaps < 0)
imagegaps = 0; imagegaps = 0;
@ -356,7 +360,7 @@ rotateimg(const Arg *arg)
return; return;
#endif #endif
if (!image) return; if (!image || hideimage) return;
rotation += arg->i ? arg->i : 1; rotation += arg->i ? arg->i : 1;