13
0

Hopefully fix visual glitches on dragging fade ins/outs.

git-svn-id: svn://localhost/ardour2/branches/3.0@8298 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-12-18 23:53:37 +00:00
parent 556c627fed
commit 1c3d7637b5

View File

@ -588,8 +588,9 @@ AudioRegionView::reset_fade_in_shape_width (framecnt_t width)
width = std::max ((framecnt_t) 64, width);
Points* points;
double pwidth = width / samples_per_unit;
/* round here to prevent little visual glitches with sub-pixel placement */
double const pwidth = rint (width / samples_per_unit);
uint32_t npoints = std::min (gdk_screen_width(), (int) pwidth);
double h;
@ -674,7 +675,9 @@ AudioRegionView::reset_fade_out_shape_width (framecnt_t width)
width = std::max ((framecnt_t) 64, width);
Points* points;
double pwidth = width / samples_per_unit;
/* round here to prevent little visual glitches with sub-pixel placement */
double const pwidth = rint (width / samples_per_unit);
uint32_t npoints = std::min (gdk_screen_width(), (int) pwidth);
double h;