summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-03-26 10:12:54 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-03-26 10:12:54 -0600
commitf744b5fc121a442692dfe256e802f8b98163aea3 (patch)
treeecb7e4387ee20ba53447e402ad67a771640b968f
parent672c698eb3f84df5156c6e8be07ec3d569f9a551 (diff)
change velocity bar inside notes to extend to edges of note6.0-pre1
Having the velocity bar inset from note causes distracting space at beginning of note when viewing a MIDI note that is zoomed out
-rw-r--r--libs/canvas/note.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/canvas/note.cc b/libs/canvas/note.cc
index 58431bdf6f..8b34caf1c8 100644
--- a/libs/canvas/note.cc
+++ b/libs/canvas/note.cc
@@ -78,8 +78,8 @@ Note::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
self.y1 = self.y0 + center + 2;
self.y0 = self.y0 + center - 1;
const double width = (self.x1 - self.x0) - (2 * outline_width());
- self.x0 = self.x0 + outline_width()+1;
- self.x1 = self.x0 + ((width-2) * _velocity);
+ self.x0 = self.x0 + outline_width();
+ self.x1 = self.x0 + (width * _velocity);
const Rect draw = self.intersection (area);