Fixed broken reference to x_factor, should have been just factor.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1436 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
394bb1d3a0
commit
0b1526ca1c
|
@ -557,7 +557,7 @@ if ( isset($action) )
|
||||||
case 'abs' :
|
case 'abs' :
|
||||||
case 'rel' :
|
case 'rel' :
|
||||||
{
|
{
|
||||||
$step = intval(round($monitor['MinFocusStep']+(($monitor['MaxFocusStep']-$monitor['MinFocusStep'])*$x_factor)));
|
$step = intval(round($monitor['MinFocusStep']+(($monitor['MaxFocusStep']-$monitor['MinFocusStep'])*$factor)));
|
||||||
$ctrl_command .= " --step=".$step;
|
$ctrl_command .= " --step=".$step;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -601,7 +601,7 @@ if ( isset($action) )
|
||||||
case 'abs' :
|
case 'abs' :
|
||||||
case 'rel' :
|
case 'rel' :
|
||||||
{
|
{
|
||||||
$step = intval(round($monitor['MinZoomStep']+(($monitor['MaxZoomStep']-$monitor['MinZoomStep'])*$x_factor)));
|
$step = intval(round($monitor['MinZoomStep']+(($monitor['MaxZoomStep']-$monitor['MinZoomStep'])*$factor)));
|
||||||
$ctrl_command .= " --step=".$step;
|
$ctrl_command .= " --step=".$step;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -645,7 +645,7 @@ if ( isset($action) )
|
||||||
case 'abs' :
|
case 'abs' :
|
||||||
case 'rel' :
|
case 'rel' :
|
||||||
{
|
{
|
||||||
$step = intval(round($monitor['MinIrisStep']+(($monitor['MaxIrisStep']-$monitor['MinIrisStep'])*$x_factor)));
|
$step = intval(round($monitor['MinIrisStep']+(($monitor['MaxIrisStep']-$monitor['MinIrisStep'])*$factor)));
|
||||||
$ctrl_command .= " --step=".$step;
|
$ctrl_command .= " --step=".$step;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -677,7 +677,7 @@ if ( isset($action) )
|
||||||
case 'abs' :
|
case 'abs' :
|
||||||
case 'rel' :
|
case 'rel' :
|
||||||
{
|
{
|
||||||
$step = intval(round($monitor['MinWhiteStep']+(($monitor['MaxWhiteStep']-$monitor['MinWhiteStep'])*$x_factor)));
|
$step = intval(round($monitor['MinWhiteStep']+(($monitor['MaxWhiteStep']-$monitor['MinWhiteStep'])*$factor)));
|
||||||
$ctrl_command .= " --step=".$step;
|
$ctrl_command .= " --step=".$step;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -709,7 +709,7 @@ if ( isset($action) )
|
||||||
case 'abs' :
|
case 'abs' :
|
||||||
case 'rel' :
|
case 'rel' :
|
||||||
{
|
{
|
||||||
$step = intval(round($monitor['MinGainStep']+(($monitor['MaxGainStep']-$monitor['MinGainStep'])*$x_factor)));
|
$step = intval(round($monitor['MinGainStep']+(($monitor['MaxGainStep']-$monitor['MinGainStep'])*$factor)));
|
||||||
$ctrl_command .= " --step=".$step;
|
$ctrl_command .= " --step=".$step;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue