mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Hopefully finally fix tempo curve flickering.
This commit is contained in:
parent
22e031135a
commit
0d7f73cb27
1 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ FramedCurve::set_points_per_segment (uint32_t n)
|
|||
just need to schedule a redraw rather than notify the parent of any
|
||||
changes
|
||||
*/
|
||||
points_per_segment = n;
|
||||
points_per_segment = max (n, (uint32_t) 3);
|
||||
interpolate ();
|
||||
redraw ();
|
||||
}
|
||||
|
|
@ -187,13 +187,13 @@ FramedCurve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) c
|
|||
Points::size_type left = 0;
|
||||
Points::size_type right = n_samples;
|
||||
|
||||
for (Points::size_type idx = 0; idx < n_samples; ++idx) {
|
||||
for (Points::size_type idx = 0; idx < n_samples - 1; ++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 + 2; --idx) {
|
||||
for (Points::size_type idx = n_samples; idx > left + 1; --idx) {
|
||||
window_space = item_to_window (Duple (samples[idx].x, 0.0));
|
||||
if (window_space.x <= draw.x1) break;
|
||||
right = idx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue