mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
why use fabs?
git-svn-id: svn://localhost/ardour2/branches/3.0@8747 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9b17f35576
commit
466cc57416
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ Panner2in2out::update ()
|
||||||
const double direction_as_lr_fract = _pannable->pan_azimuth_control->get_value();
|
const double direction_as_lr_fract = _pannable->pan_azimuth_control->get_value();
|
||||||
|
|
||||||
if (width < 0.0) {
|
if (width < 0.0) {
|
||||||
width = fabs (width);
|
width = -width;
|
||||||
pos[0] = direction_as_lr_fract + (width/2.0); // left signal lr_fract
|
pos[0] = direction_as_lr_fract + (width/2.0); // left signal lr_fract
|
||||||
pos[1] = direction_as_lr_fract - (width/2.0); // right signal lr_fract
|
pos[1] = direction_as_lr_fract - (width/2.0); // right signal lr_fract
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue