forked from speedie/spmenu
these functions shouldn't do anything if hideimage
This commit is contained in:
parent
a0659d2fd7
commit
7ed80af25e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue