diff options
author | Carl Hetherington <carl@carlh.net> | 2010-10-17 23:35:05 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-10-17 23:35:05 +0000 |
commit | 156f5e4a4258437fa1136dcb78780828de961dbf (patch) | |
tree | cee266d47923e445ec979e335856c76e57a5bda8 /gtk2_ardour/route_time_axis.cc | |
parent | aef355525f50af76a0b16e2a1ed2326910c071eb (diff) |
Only compute and render the visible portion of crossfades. Fixes #3498.
git-svn-id: svn://localhost/ardour2/branches/3.0@7901 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 9a631f6941..e36d15bd18 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -23,7 +23,7 @@ #include <algorithm> #include <string> #include <vector> -#include <map> +#include <map> #include <utility> #include <sigc++/bind.h> @@ -225,6 +225,7 @@ RouteTimeAxisView::RouteTimeAxisView (PublicEditor& ed, Session* sess, boost::sh } _editor.ZoomChanged.connect (sigc::mem_fun(*this, &RouteTimeAxisView::reset_samples_per_unit)); + _editor.HorizontalPositionChanged.connect (sigc::mem_fun (*this, &RouteTimeAxisView::horizontal_position_changed)); ColorsChanged.connect (sigc::mem_fun (*this, &RouteTimeAxisView::color_handler)); PropertyList* plist = new PropertyList(); @@ -872,6 +873,14 @@ RouteTimeAxisView::reset_samples_per_unit () } void +RouteTimeAxisView::horizontal_position_changed () +{ + if (_view) { + _view->horizontal_position_changed (); + } +} + +void RouteTimeAxisView::set_samples_per_unit (double spu) { double speed = 1.0; |