mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
fade_out visible
git-svn-id: svn://localhost/trunk/ardour2@213 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
af40be3006
commit
0faaa3ad7b
1 changed files with 6 additions and 6 deletions
|
|
@ -698,17 +698,17 @@ AudioRegionView::reset_fade_out_shape_width (jack_nframes_t width)
|
||||||
double xdelta = pwidth/npoints;
|
double xdelta = pwidth/npoints;
|
||||||
|
|
||||||
for (pi = 0, pc = 0; pc < npoints; ++pc) {
|
for (pi = 0, pc = 0; pc < npoints; ++pc) {
|
||||||
(*points)[pi] = _pixel_width - 1 - pwidth + (pc*xdelta);
|
(*points)[pi].set_x(_pixel_width - 1 - pwidth + (pc*xdelta));
|
||||||
(*points)[pi++] = 2 + (h - (curve[pc] * h));
|
(*points)[pi++].set_y(2 + (h - (curve[pc] * h)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fold back */
|
/* fold back */
|
||||||
|
|
||||||
(*points)[pi] = _pixel_width;
|
(*points)[pi].set_x(_pixel_width);
|
||||||
(*points)[pi++] = h;
|
(*points)[pi++].set_y(h);
|
||||||
|
|
||||||
(*points)[pi] = _pixel_width;
|
(*points)[pi].set_x(_pixel_width);
|
||||||
(*points)[pi++] = 2;
|
(*points)[pi++].set_y(2);
|
||||||
|
|
||||||
/* connect the dots ... */
|
/* connect the dots ... */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue