summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_streamview.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-10-17 23:35:05 +0000
committerCarl Hetherington <carl@carlh.net>2010-10-17 23:35:05 +0000
commit156f5e4a4258437fa1136dcb78780828de961dbf (patch)
treecee266d47923e445ec979e335856c76e57a5bda8 /gtk2_ardour/audio_streamview.cc
parentaef355525f50af76a0b16e2a1ed2326910c071eb (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/audio_streamview.cc')
-rw-r--r--gtk2_ardour/audio_streamview.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/audio_streamview.cc b/gtk2_ardour/audio_streamview.cc
index 4b2033ff63..ee94d9bde3 100644
--- a/gtk2_ardour/audio_streamview.cc
+++ b/gtk2_ardour/audio_streamview.cc
@@ -826,3 +826,14 @@ AudioStreamView::parameter_changed (string const & p)
set_waveform_shape (Config->get_waveform_shape ());
}
}
+
+void
+AudioStreamView::horizontal_position_changed ()
+{
+ /* we only `draw' the bit of the curve that is visible, so we need to update here */
+
+ for (CrossfadeViewList::iterator i = crossfade_views.begin(); i != crossfade_views.end(); ++i) {
+ i->second->horizontal_position_changed ();
+ }
+}
+