diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-24 17:11:07 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-24 17:11:07 -0400 |
commit | 30394cdcf9547b5b974e6593eb149a7d5c8ff625 (patch) | |
tree | cafdce4db8074527e3d03437b64269e5dcc1c315 /gtk2_ardour/midi_streamview.cc | |
parent | 5ea6b4420b4dd9c499153bd97fc7d3271f45c5d3 (diff) |
fix placement of black/white note lines/bars in MIDI streamview
Diffstat (limited to 'gtk2_ardour/midi_streamview.cc')
-rw-r--r-- | gtk2_ardour/midi_streamview.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc index f192607da4..6072f88234 100644 --- a/gtk2_ardour/midi_streamview.cc +++ b/gtk2_ardour/midi_streamview.cc @@ -301,7 +301,7 @@ MidiStreamView::draw_note_lines() for (int i = highest_note(); i >= lowest_note(); --i) { - y = floor (note_to_y(i)); + y = note_to_y (i); /* this is the line actually corresponding to the division * between notes @@ -328,7 +328,7 @@ MidiStreamView::draw_note_lines() double h = y - prev_y; double mid = y + (h/2.0); - + if (height > 1.0) { _note_lines->add (mid, h, color); } |