diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-29 12:16:13 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-29 12:16:13 +0000 |
commit | b1d5a11194e9299efeb9c2e62c396a20be205902 (patch) | |
tree | 0565e3a7d1dc3f6c4d05f63484f5196581ad75b6 /gtk2_ardour | |
parent | 890afb2128f930b2384ca3c310de5fd311f5f9dd (diff) |
lincoln's patch to make MIDI note lines go away at smaller track heights
git-svn-id: svn://localhost/ardour2/branches/3.0@7194 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/midi_streamview.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc index 826538dc50..34111c3c60 100644 --- a/gtk2_ardour/midi_streamview.cc +++ b/gtk2_ardour/midi_streamview.cc @@ -212,7 +212,9 @@ void MidiStreamView::display_track (boost::shared_ptr<Track> tr) { StreamView::display_track (tr); + draw_note_lines(); + NoteRangeChanged(); } @@ -296,6 +298,7 @@ MidiStreamView::update_contents_height () { StreamView::update_contents_height(); _note_lines->property_y2() = height; + draw_note_lines(); } @@ -307,6 +310,10 @@ MidiStreamView::draw_note_lines() uint32_t color; _note_lines->clear(); + + if(height < 140){ + return; + } for (int i = lowest_note(); i <= highest_note(); ++i) { y = floor(note_to_y(i)); |