Skip to content

Commit f744b5f

Browse files
change velocity bar inside notes to extend to edges of note
Having the velocity bar inset from note causes distracting space at beginning of note when viewing a MIDI note that is zoomed out
1 parent 672c698 commit f744b5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/canvas/note.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Note::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
7878
self.y1 = self.y0 + center + 2;
7979
self.y0 = self.y0 + center - 1;
8080
const double width = (self.x1 - self.x0) - (2 * outline_width());
81-
self.x0 = self.x0 + outline_width()+1;
82-
self.x1 = self.x0 + ((width-2) * _velocity);
81+
self.x0 = self.x0 + outline_width();
82+
self.x1 = self.x0 + (width * _velocity);
8383

8484
const Rect draw = self.intersection (area);
8585

0 commit comments

Comments
 (0)