Tweak positioning of fade handles.
git-svn-id: svn://localhost/ardour2/branches/3.0@8296 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
94c69b3c91
commit
66be0059e7
@ -599,17 +599,10 @@ AudioRegionView::reset_fade_in_shape_width (framecnt_t width)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
double handle_center;
|
double const handle_center = pwidth;
|
||||||
handle_center = pwidth;
|
|
||||||
|
|
||||||
if (handle_center > 7.0) {
|
fade_in_handle->property_x1() = handle_center;
|
||||||
handle_center -= 2.0;
|
fade_in_handle->property_x2() = handle_center + 6;
|
||||||
} else {
|
|
||||||
handle_center = 3.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
fade_in_handle->property_x1() = handle_center - 3.0;
|
|
||||||
fade_in_handle->property_x2() = handle_center + 3.0;
|
|
||||||
|
|
||||||
if (pwidth < 5) {
|
if (pwidth < 5) {
|
||||||
fade_in_shape->hide();
|
fade_in_shape->hide();
|
||||||
@ -690,17 +683,10 @@ AudioRegionView::reset_fade_out_shape_width (framecnt_t width)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
double handle_center;
|
double const handle_center = (_region->length() - width) / samples_per_unit;
|
||||||
handle_center = (_region->length() - width) / samples_per_unit;
|
|
||||||
|
|
||||||
if (handle_center > 7.0) {
|
fade_out_handle->property_x1() = handle_center - 6;
|
||||||
handle_center -= 2.0;
|
fade_out_handle->property_x2() = handle_center;
|
||||||
} else {
|
|
||||||
handle_center = 3.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
fade_out_handle->property_x1() = handle_center - 3.0;
|
|
||||||
fade_out_handle->property_x2() = handle_center + 3.0;
|
|
||||||
|
|
||||||
/* don't show shape if its too small */
|
/* don't show shape if its too small */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user