convert canvas_event_frame() and window_event_frame() to canvas_event_sample() and...
[ardour.git] / gtk2_ardour / editor_canvas_events.cc
index e94ffe2798102881a94330cb8182b9e826ad2ff9..c74c6b6e194d920248761a919838ce6178b83a8b 100644 (file)
@@ -1031,7 +1031,7 @@ Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const& context,
        /* assume we're dragging with button 1 */
        event.motion.state = Gdk::BUTTON1_MASK;
 
-       (void) window_event_frame (&event, &px, &py);
+       (void) window_event_sample (&event, &px, &py);
 
        std::pair<TimeAxisView*, int> const tv = trackview_by_y_position (py);
        bool can_drop = false;
@@ -1114,7 +1114,7 @@ Editor::drop_regions (const Glib::RefPtr<Gdk::DragContext>& /*context*/,
        /* assume we're dragging with button 1 */
        event.motion.state = Gdk::BUTTON1_MASK;
 
-       framepos_t const pos = window_event_frame (&event, &px, &py);
+       framepos_t const pos = window_event_sample (&event, &px, &py);
 
        std::pair<TimeAxisView*, int> const tv = trackview_by_y_position (py);