mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
minor tweaks
git-svn-id: svn://localhost/ardour2/branches/3.0@13532 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0e2396cd78
commit
eb1382bd9a
1 changed files with 5 additions and 7 deletions
|
|
@ -589,7 +589,6 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool
|
||||||
return pair<double,float> (x,fraction);
|
return pair<double,float> (x,fraction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
double dx = ignore_x ? 0 : (x - _drag_x);
|
double dx = ignore_x ? 0 : (x - _drag_x);
|
||||||
double dy = fraction - _last_drag_fraction;
|
double dy = fraction - _last_drag_fraction;
|
||||||
|
|
||||||
|
|
@ -671,10 +670,11 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* update actual line coordinates (will queue a redraw)
|
||||||
|
*/
|
||||||
|
|
||||||
if (line_points.size() > 1) {
|
line->property_points() = line_points;
|
||||||
line->property_points() = line_points;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_drag_distance += dx;
|
_drag_distance += dx;
|
||||||
|
|
@ -821,9 +821,7 @@ AutomationLine::remove_point (ControlPoint& cp)
|
||||||
* @param result Filled in with selectable things; in this case, ControlPoints.
|
* @param result Filled in with selectable things; in this case, ControlPoints.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
AutomationLine::get_selectables (
|
AutomationLine::get_selectables (framepos_t start, framepos_t end, double botfrac, double topfrac, list<Selectable*>& results)
|
||||||
framepos_t start, framepos_t end, double botfrac, double topfrac, list<Selectable*>& results
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/* convert fractions to display coordinates with 0 at the top of the track */
|
/* convert fractions to display coordinates with 0 at the top of the track */
|
||||||
double const bot_track = (1 - topfrac) * trackview.current_height ();
|
double const bot_track = (1 - topfrac) * trackview.current_height ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue