"We brake for nobody." oh wait. - fixes Rectified Waveform view.

This commit is contained in:
Robin Gareus 2014-05-26 22:45:42 +02:00
parent 314d210f2b
commit bf4819ab0e

View file

@ -669,6 +669,7 @@ WaveView::position (double s) const
switch (_shape) { switch (_shape) {
case Rectified: case Rectified:
pos = floor (_height - (s * _height)); pos = floor (_height - (s * _height));
break;
default: default:
pos = floor ((1.0-s) * (_height / 2.0)); pos = floor ((1.0-s) * (_height / 2.0));
break; break;