mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
knob: use double precision normal on dent.
Fixes -0dB vs +0dB rounding issue.
This commit is contained in:
parent
2702dd9dc0
commit
9a4f205b6e
1 changed files with 2 additions and 2 deletions
|
|
@ -361,7 +361,7 @@ ArdourKnob::on_motion_notify_event (GdkEventMotion *ev)
|
|||
delta = tozero + remain;
|
||||
_dead_zone_delta = 0;
|
||||
} else {
|
||||
c->set_interface(_normal);
|
||||
c->set_value (c->normal());
|
||||
val = _normal;
|
||||
_dead_zone_delta = remain / px_deadzone;
|
||||
return true;
|
||||
|
|
@ -369,7 +369,7 @@ ArdourKnob::on_motion_notify_event (GdkEventMotion *ev)
|
|||
}
|
||||
|
||||
if (fabsf (rintf((val - _normal) / scale) + _dead_zone_delta) < 1) {
|
||||
c->set_interface(_normal);
|
||||
c->set_value (c->normal());
|
||||
_dead_zone_delta += delta / px_deadzone;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue