diff options
author | Karsten Wiese <fzuuzf@googlemail.com> | 2005-12-28 14:14:24 +0000 |
---|---|---|
committer | Karsten Wiese <fzuuzf@googlemail.com> | 2005-12-28 14:14:24 +0000 |
commit | 0faaa3ad7bf0cedf68eda1dd43e232363b9f7f04 (patch) | |
tree | bc52a2e5e7d09c4225f92c5bfc0164628959b0fc | |
parent | af40be30068590ed59c44ab9482a6d3f1c40d864 (diff) |
fade_out visible
git-svn-id: svn://localhost/trunk/ardour2@213 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/regionview.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/regionview.cc b/gtk2_ardour/regionview.cc index fc21182504..672f0a5291 100644 --- a/gtk2_ardour/regionview.cc +++ b/gtk2_ardour/regionview.cc @@ -698,17 +698,17 @@ AudioRegionView::reset_fade_out_shape_width (jack_nframes_t width) double xdelta = pwidth/npoints; for (pi = 0, pc = 0; pc < npoints; ++pc) { - (*points)[pi] = _pixel_width - 1 - pwidth + (pc*xdelta); - (*points)[pi++] = 2 + (h - (curve[pc] * h)); + (*points)[pi].set_x(_pixel_width - 1 - pwidth + (pc*xdelta)); + (*points)[pi++].set_y(2 + (h - (curve[pc] * h))); } /* fold back */ - (*points)[pi] = _pixel_width; - (*points)[pi++] = h; + (*points)[pi].set_x(_pixel_width); + (*points)[pi++].set_y(h); - (*points)[pi] = _pixel_width; - (*points)[pi++] = 2; + (*points)[pi].set_x(_pixel_width); + (*points)[pi++].set_y(2); /* connect the dots ... */ |