Fix editor summary exposure rectangle

Rectangle uses position and width, not coordinate pairs.
This commit is contained in:
Robin Gareus 2021-01-07 20:46:44 +01:00
parent aecd84e7fd
commit 44528f4fd0
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -931,7 +931,7 @@ EditorSummary::playhead_position_changed (samplepos_t p)
if (_session && o != n) {
int a = max(2, min (o, n));
int b = max (o, n);
set_overlays_dirty_rect (a - 2, 0, b + 2, get_height ());
set_overlays_dirty_rect (a - 2, 0, b - a + 4, get_height ());
}
}