diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-18 21:34:32 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-18 21:34:32 +0000 |
commit | 556c627fed79073fe1ee71f1e71dba1de217a1b2 (patch) | |
tree | f9b131f96f59a688b058c7abc37a3ea24a09c448 /gtk2_ardour/audio_region_view.cc | |
parent | 66be0059e7a27fedb16519a26db1b1c100740f46 (diff) |
Further fade handle twaeks.
git-svn-id: svn://localhost/ardour2/branches/3.0@8297 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_region_view.cc')
-rw-r--r-- | gtk2_ardour/audio_region_view.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index b69ea8735a..c3a2903e8b 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -601,6 +601,7 @@ AudioRegionView::reset_fade_in_shape_width (framecnt_t width) double const handle_center = pwidth; + /* Put the fade in handle so that its left side is at the end-of-fade line */ fade_in_handle->property_x1() = handle_center; fade_in_handle->property_x2() = handle_center + 6; @@ -685,8 +686,11 @@ AudioRegionView::reset_fade_out_shape_width (framecnt_t width) double const handle_center = (_region->length() - width) / samples_per_unit; - fade_out_handle->property_x1() = handle_center - 6; - fade_out_handle->property_x2() = handle_center; + /* Put the fade out handle so that its right side is at the end-of-fade line; + * it's `one out' for precise pixel accuracy. + */ + fade_out_handle->property_x1() = handle_center - 5; + fade_out_handle->property_x2() = handle_center + 1; /* don't show shape if its too small */ |