summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-09-17 23:27:49 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-09-17 23:27:49 +0000
commit0ed7a99dd5cfb3a9ed932c9d2a49e1e32c7349a3 (patch)
tree41d2d0d333aecd21f97f38f5de968253ce3882d0
parent4400489f152083227a090de586ef914bd884ef3f (diff)
fix reversed direction of MIDI note drag preview
git-svn-id: svn://localhost/ardour2/branches/3.0@7796 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/editor_drag.cc4
1 files 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;