mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Yr,[p ramps - fix flickering tempo curves when zoomed in.
This commit is contained in:
parent
1927a707c5
commit
2a8104f2f8
1 changed files with 3 additions and 2 deletions
|
|
@ -188,11 +188,12 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
|
||||||
Points::size_type right = n_samples;
|
Points::size_type right = n_samples;
|
||||||
|
|
||||||
for (Points::size_type idx = 0; idx < n_samples - 1; ++idx) {
|
for (Points::size_type idx = 0; idx < n_samples - 1; ++idx) {
|
||||||
left = idx;
|
|
||||||
window_space = item_to_window (Duple (samples[idx].x, 0.0));
|
window_space = item_to_window (Duple (samples[idx].x, 0.0));
|
||||||
if (window_space.x >= draw.x0) break;
|
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));
|
window_space = item_to_window (Duple (samples[idx].x, 0.0));
|
||||||
if (window_space.x <= draw.x1) break;
|
if (window_space.x <= draw.x1) break;
|
||||||
right = idx;
|
right = idx;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue