From 0ed7a99dd5cfb3a9ed932c9d2a49e1e32c7349a3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 17 Sep 2010 23:27:49 +0000 Subject: [PATCH] fix reversed direction of MIDI note drag preview git-svn-id: svn://localhost/ardour2/branches/3.0@7796 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_drag.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 675a722509..95b41dcde4 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -3699,7 +3699,7 @@ NoteDrag::total_dy () const } } - return ndy; + return -ndy; /* larger = higher, which is the inverse of the X-centric geometric universe */ } @@ -3708,7 +3708,7 @@ NoteDrag::motion (GdkEvent *, bool) { /* Total change in x and y since the start of the drag */ frameoffset_t const dx = total_dx (); - int8_t const dy = total_dy (); + int8_t const dy = -total_dy (); /* Now work out what we have to do to the note canvas items to set this new drag delta */ double const tdx = _editor->frame_to_unit (dx) - _cumulative_dx;