cairo line may be rounded +-1 px, also invalidating area x<0 is a noop.
git-svn-id: svn://localhost/ardour2/branches/3.0@13493
d708f5d6-7413-0410-9779-
e7cbd77b26cf
int const o = int (_last_playhead);
int const n = int (playhead_frame_to_position (p));
if (_session && o != n) {
- int a = min (o, n);
+ int a = max(2, min (o, n));
int b = max (o, n);
- set_overlays_dirty (a - 1, 0, b + 1, get_height ());
+ set_overlays_dirty (a - 2, 0, b + 2, get_height ());
}
}