fading small fix
This commit is contained in:
parent
0bf05ebd90
commit
4924d486d0
|
@ -1098,6 +1098,12 @@ static int check_fading(void)
|
||||||
instead_eval("return get_fading()");
|
instead_eval("return get_fading()");
|
||||||
rc = instead_bretval(0);
|
rc = instead_bretval(0);
|
||||||
st = instead_iretval(1);
|
st = instead_iretval(1);
|
||||||
|
|
||||||
|
if (st <= 0)
|
||||||
|
st = 1;
|
||||||
|
else if (st > 255)
|
||||||
|
st = 255;
|
||||||
|
|
||||||
instead_clear();
|
instead_clear();
|
||||||
return rc?st:0;
|
return rc?st:0;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue