mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
Cairo-fix cursor lines so they align perfectly with Rulers, Grids, and region edges.
This commit is contained in:
parent
8046f40f14
commit
8584ea75d1
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ EditorCursor::set_position (samplepos_t sample)
|
|||
double const new_pos = _editor.sample_to_pixel_unrounded (sample);
|
||||
|
||||
if (rint(new_pos) != rint(_track_canvas_item->x ())) {
|
||||
_track_canvas_item->set_x (new_pos);
|
||||
_track_canvas_item->set_x (new_pos-0.5); //accommodate the 1/2 pixel "line" offset in cairo
|
||||
}
|
||||
|
||||
_current_sample = sample;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue