diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-10 14:33:50 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-10 14:33:50 -0500 |
commit | 23b38166516db5423565b12a225d005ca7d47673 (patch) | |
tree | 34c6c427abcc181a919ec11f3e95c0a1c36a590f | |
parent | 02e6d14e2330be710c91294166cf38a87d00f799 (diff) |
remove unnecessary pixel placement stuff from editor cursor
-rw-r--r-- | gtk2_ardour/editor_cursors.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gtk2_ardour/editor_cursors.cc b/gtk2_ardour/editor_cursors.cc index 557120c1db..59b81b2b48 100644 --- a/gtk2_ardour/editor_cursors.cc +++ b/gtk2_ardour/editor_cursors.cc @@ -45,11 +45,9 @@ EditorCursor::EditorCursor (Editor& ed, bool (Editor::*callbck)(GdkEvent*,Ardour _time_bars_canvas_item.set_head_width (0, 16); _time_bars_canvas_item.set_head_outward (0, false); _time_bars_canvas_item.set_show_head (1, false); // head only - _time_bars_canvas_item.set_outline_width (0.5); _time_bars_canvas_item.set_data ("cursor", this); _track_canvas_item.set_data ("cursor", this); - _track_canvas_item.set_outline_width (0.5); _time_bars_canvas_item.Event.connect (sigc::bind (sigc::mem_fun (ed, callbck), &_time_bars_canvas_item)); _track_canvas_item.Event.connect (sigc::bind (sigc::mem_fun (ed, callbck), &_track_canvas_item)); @@ -70,11 +68,7 @@ EditorCursor::set_position (framepos_t frame) { PositionChanged (frame); - /* See Cairo FAQ question on single pixel lines to understand - why we add 0.5 - */ - - double const new_pos = _editor.sample_to_pixel (frame) + 0.5; + double const new_pos = _editor.sample_to_pixel (frame); if (new_pos != _time_bars_canvas_item.x ()) { _time_bars_canvas_item.set_x (new_pos); |