projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8046f40
)
Cairo-fix cursor lines so they align perfectly with Rulers, Grids, and region edges.
author
Ben Loftis
<ben@harrisonconsoles.com>
Sat, 10 Feb 2018 13:51:28 +0000
(07:51 -0600)
committer
Ben Loftis
<ben@harrisonconsoles.com>
Sat, 10 Feb 2018 13:51:28 +0000
(07:51 -0600)
gtk2_ardour/editor_cursors.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_cursors.cc
b/gtk2_ardour/editor_cursors.cc
index 7f39cbe17548f7214662072a1a32e9dfd89b6a97..3df7761007a09c46da17b799932c64c2403d58e8 100644
(file)
--- 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;