summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-12 20:14:19 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-12 20:14:19 +0000
commit6fff4dcddaaa6f8aa0b66d200270ce0a1092ba27 (patch)
tree9c81b52574d8370bad7f925ad137ff1cc0af01b5 /gtk2_ardour/automation_line.cc
parentb0c23c0646d9771ca171197a42094100ed9e6ee4 (diff)
Small cleanups.
git-svn-id: svn://localhost/ardour2/branches/3.0@8255 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r--gtk2_ardour/automation_line.cc15
1 files changed, 5 insertions, 10 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index cd89abcc99..0d63f29226 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -1074,21 +1074,16 @@ AutomationLine::reset_callback (const Evoral::ControlList& events)
double translated_x = (*ai)->when;
double translated_y = (*ai)->value;
model_to_view_coord (translated_x, translated_y);
-
- add_model_point (tmp_points, (*ai)->when, translated_y);
+
+ tmp_points.push_back (ALPoint (
+ trackview.editor().frame_to_unit (_time_converter.to ((*ai)->when)),
+ _height - (translated_y * _height))
+ );
}
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 (_time_converter.to(frame)),
- _height - (yfract * _height)));
-}
-
void
AutomationLine::reset ()
{