diff options
author | nick_m <mainsbridge@gmail.com> | 2016-05-25 04:07:38 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-05-27 23:38:17 +1000 |
commit | 2a8104f2f8e8fc7c800fd35c788c48eca09d6fdc (patch) | |
tree | cefbc667f2bbad4dd954055d9f764fa9a28787b7 /libs | |
parent | 1927a707c560cfe2a9963fb0fb75d65f5720256d (diff) |
Yr,[p ramps - fix flickering tempo curves when zoomed in.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/canvas/framed_curve.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/canvas/framed_curve.cc b/libs/canvas/framed_curve.cc index e5dfb54b85..295deb8dad 100644 --- a/libs/canvas/framed_curve.cc +++ b/libs/canvas/framed_curve.cc @@ -188,11 +188,12 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c Points::size_type right = n_samples; for (Points::size_type idx = 0; idx < n_samples - 1; ++idx) { - left = idx; window_space = item_to_window (Duple (samples[idx].x, 0.0)); if (window_space.x >= draw.x0) break; + left = idx; } - for (Points::size_type idx = n_samples; idx > left + 1; --idx) { + + for (Points::size_type idx = n_samples; idx > left; --idx) { window_space = item_to_window (Duple (samples[idx].x, 0.0)); if (window_space.x <= draw.x1) break; right = idx; |