mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
gtk interface update for controller step/page size
This commit is contained in:
parent
18efe8f446
commit
4d4c20b8cc
1 changed files with 7 additions and 4 deletions
|
|
@ -129,13 +129,16 @@ AutomationController::create(boost::shared_ptr<Automatable> printer,
|
||||||
double smallstep = desc.smallstep;
|
double smallstep = desc.smallstep;
|
||||||
double largestep = desc.largestep;
|
double largestep = desc.largestep;
|
||||||
if (smallstep == 0.0) {
|
if (smallstep == 0.0) {
|
||||||
smallstep = (up - lo) / 100;
|
smallstep = up / 1000.;
|
||||||
|
} else {
|
||||||
|
smallstep = ac->internal_to_interface(desc.lower + smallstep);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (largestep == 0.0) {
|
if (largestep == 0.0) {
|
||||||
largestep = (up - lo) / 10;
|
largestep = up / 40.;
|
||||||
|
} else {
|
||||||
|
largestep = ac->internal_to_interface(desc.lower + largestep);
|
||||||
}
|
}
|
||||||
smallstep = ac->internal_to_interface(smallstep);
|
|
||||||
largestep = ac->internal_to_interface(largestep);
|
|
||||||
|
|
||||||
Gtk::Adjustment* adjustment = manage (
|
Gtk::Adjustment* adjustment = manage (
|
||||||
new Gtk::Adjustment (normal, lo, up, smallstep, largestep));
|
new Gtk::Adjustment (normal, lo, up, smallstep, largestep));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue