diff options
author | Robin Gareus <robin@gareus.org> | 2013-01-04 17:36:52 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-01-04 17:36:52 +0000 |
commit | bb3690db586d092e70732d6546969a8828aadcfe (patch) | |
tree | 4a1669d778a847469a3a301b80b642fa8f4b85f8 /gtk2_ardour/editor_drag.cc | |
parent | 2c95bfcd46d9093f665bbedfad3cdf73e45f3d35 (diff) |
merge Marcel Bonnet's patches for Free-BSD
(may need further cleanup:
compare with timbyr's windows patch,
verify fst/vsti + ALSA)
git-svn-id: svn://localhost/ardour2/branches/3.0@13774 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 1cc5e97dc6..de211cbd18 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -1480,7 +1480,7 @@ RegionCreateDrag::motion (GdkEvent* event, bool first_move) place snapped notes at the start of the region. */ - framecnt_t const len = abs (f - grab_frame () - 1); + framecnt_t const len = (int) fabs (f - grab_frame () - 1); _region->set_length (len < 1 ? 1 : len); } } @@ -4694,7 +4694,7 @@ NoteCreateDrag::finished (GdkEvent*, bool had_movement) } framepos_t const start = min (_note[0], _note[1]); - framecnt_t length = abs (_note[0] - _note[1]); + framecnt_t length = (int) fabs (_note[0] - _note[1]); framecnt_t const g = grid_frames (start); double const one_tick = 1 / Timecode::BBT_Time::ticks_per_beat; |