diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-09-20 14:49:37 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-09-20 14:49:37 +0000 |
commit | a31775baf1c832d6e06fa7b2459ccb3c7356ceb5 (patch) | |
tree | 5c27fc90fbb25f06ff58669b2625a0c71f959af4 /gtk2_ardour/editor_cursors.cc | |
parent | 133ce92a30880ee4d4053b2614e96f76505a981b (diff) |
Don't defer Editor::track_canvas_size_allocated () (defer the timebar redrawing instead) + some performance improvements to said function, a more 3.0-like initialize_canvas (), show/hide playhead more sensibly.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3772 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_cursors.cc')
-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 ca00ec61d2..0f5c414408 100644 --- a/gtk2_ardour/editor_cursors.cc +++ b/gtk2_ardour/editor_cursors.cc @@ -64,10 +64,6 @@ Editor::Cursor::set_position (nframes64_t frame) { double new_pos = editor.frame_to_unit (frame); - if (editor.session == 0) { - canvas_item.hide(); - } - current_frame = frame; if (new_pos != points.front().get_x()) { points.front().set_x (new_pos); @@ -75,6 +71,7 @@ Editor::Cursor::set_position (nframes64_t frame) canvas_item.property_points() = points; } + current_frame = frame; } void @@ -83,9 +80,6 @@ Editor::Cursor::set_length (double units) length = units; points.back().set_y (points.front().get_y() + length); canvas_item.property_points() = points; - if (editor.session != 0) { - canvas_item.show(); - } } void |