diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-08-13 15:36:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-08-13 15:36:21 +0000 |
commit | 0b1c369e15af54cf809140b75af99d72edce24ae (patch) | |
tree | c7cd072b03cfd49aab44a1e5bb150c301d155663 /gtk2_ardour/automation_line.cc | |
parent | c25496008816325bf85ac5f777978f7ce351fb1e (diff) |
engine dialog work, new -m option for menu file selection, new obolean automation line work starting up
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2293 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index d4431ff0f2..83d77490ae 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -1202,14 +1202,20 @@ AutomationLine::reset_callback (const AutomationList& events) double translated_y = (*ai)->value; model_to_view_y (translated_y); - tmp_points.push_back (ALPoint (trackview.editor.frame_to_unit ((*ai)->when), - _height - (translated_y * _height))); + add_model_point (tmp_points, (*ai)->when, translated_y); } determine_visible_control_points (tmp_points); } void +AutomationLine::add_model_point (ALPoints& tmp_points, double frame, double yfract) +{ + tmp_points.push_back (ALPoint (trackview.editor.frame_to_unit (frame), + _height - (yfract * _height))); +} + +void AutomationLine::reset () { update_pending = false; |