mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
fix fader default-value line position
This commit is contained in:
parent
d89573f8e7
commit
7eca991971
1 changed files with 2 additions and 2 deletions
|
|
@ -558,9 +558,9 @@ void
|
|||
PixFader::update_unity_position ()
|
||||
{
|
||||
if (_orien == VERT) {
|
||||
unity_loc = (int) rint (span * (1 - (default_value / (adjustment.get_upper() - adjustment.get_lower())))) - 1;
|
||||
unity_loc = (int) rint (span * (1 - ((default_value - adjustment.get_lower()) / (adjustment.get_upper() - adjustment.get_lower())))) - 1;
|
||||
} else {
|
||||
unity_loc = (int) rint (default_value * span / (adjustment.get_upper() - adjustment.get_lower()));
|
||||
unity_loc = (int) rint ((default_value - adjustment.get_lower()) * span / (adjustment.get_upper() - adjustment.get_lower()));
|
||||
}
|
||||
|
||||
queue_draw ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue