summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_cursors.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-02-10 07:51:28 -0600
committerBen Loftis <ben@harrisonconsoles.com>2018-02-10 07:51:28 -0600
commit8584ea75d1cbb6ea676a9929dc228e943b122f77 (patch)
treef40312e520a7942b25798c2b2b08f16797eed838 /gtk2_ardour/editor_cursors.cc
parent8046f40f141c0562957f982774b7c53da004ad8b (diff)
Cairo-fix cursor lines so they align perfectly with Rulers, Grids, and region edges.
Diffstat (limited to 'gtk2_ardour/editor_cursors.cc')
-rw-r--r--gtk2_ardour/editor_cursors.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_cursors.cc b/gtk2_ardour/editor_cursors.cc
index 7f39cbe175..3df7761007 100644
--- a/gtk2_ardour/editor_cursors.cc
+++ b/gtk2_ardour/editor_cursors.cc
@@ -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;