summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-11-17 22:55:03 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-11-17 22:55:03 +0000
commit1bff57131a2b0a88f00dfb281db6f3d73c4e8b3b (patch)
treedab1bf09903a868b7bc73aae8e98f1d853606a5a /gtk2_ardour/editor_drag.cc
parent3b63eae41d949123f4845fe92c8e9d28bb36aa59 (diff)
substantive change to automation line dragging code to avoid O(N^4) behaviour. performance fixes are still required for realistically data-rich automation lines
git-svn-id: svn://localhost/ardour2/branches/3.0@13515 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r--gtk2_ardour/editor_drag.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index eeb706376c..0a71055fcb 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -2884,7 +2884,6 @@ ControlPointDrag::motion (GdkEvent* event, bool)
cx_frames = min (cx_frames, _point->line().maximum_time());
float const fraction = 1.0 - (cy / _point->line().height());
-
bool const push = Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier);
_point->line().drag_motion (_editor->frame_to_unit_unrounded (cx_frames), fraction, false, push);
@@ -4295,7 +4294,6 @@ AutomationRangeDrag::motion (GdkEvent*, bool /*first_move*/)
for (list<Line>::iterator l = _lines.begin(); l != _lines.end(); ++l) {
float const f = y_fraction (l->line, _drags->current_pointer_y());
-
/* we are ignoring x position for this drag, so we can just pass in anything */
l->line->drag_motion (0, f, true, false);
show_verbose_cursor_text (l->line->get_verbose_cursor_relative_string (l->original_fraction, f));