tweak constants that affect whether/where trimming cursors are shown for MIDI notes...
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 4 Jan 2012 20:29:34 +0000 (20:29 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 4 Jan 2012 20:29:34 +0000 (20:29 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11160 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/canvas-note-event.cc
gtk2_ardour/midi_region_view.cc

index 75f9ed0d066b6756d929d41c55edaa6dbaa7afe9..94b675b22466990c126da1ddf1b52b07afd81e7f 100644 (file)
@@ -366,7 +366,7 @@ CanvasNoteEvent::mouse_near_ends () const
 bool
 CanvasNoteEvent::big_enough_to_trim () const
 {
-        return (x2() - x1()) > 10; /* canvas units, really pixels */
+        return (x2() - x1()) > 20; /* canvas units, really pixels */
 }
 
 } // namespace Canvas
index af44311085564c043962a76ef4607fa677f43cdf..ac3ac92ee4b4ca90e2018bdc1030d1bc2867a7aa 100644 (file)
@@ -3004,9 +3004,9 @@ MidiRegionView::note_mouse_position (float x_fraction, float /*y_fraction*/, boo
 {
        Editor* editor = dynamic_cast<Editor*>(&trackview.editor());
 
-       if (x_fraction > 0.0 && x_fraction < 0.25) {
+       if (x_fraction > 0.0 && x_fraction < 0.2) {
                editor->set_canvas_cursor (editor->cursors()->left_side_trim);
-       } else if (x_fraction >= 0.75 && x_fraction < 1.0) {
+       } else if (x_fraction >= 0.8 && x_fraction < 1.0) {
                editor->set_canvas_cursor (editor->cursors()->right_side_trim);
        } else {
                if (_pre_enter_cursor && can_set_cursor) {