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
This commit is contained in:
Robin Gareus
2012-11-14 05:01:25 +00:00
parent cdb8796f5f
commit cbeabee870

View File

@@ -906,9 +906,9 @@ EditorSummary::playhead_position_changed (framepos_t p)
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 ());
}
}