Don't attempt to draw more peaks than were actually read!
This commit is contained in:
parent
4543d48c41
commit
c8b872ae41
|
@ -57,6 +57,8 @@ Waveform::draw ( int X, int Y, int W, int H,
|
|||
const int halfheight = H / 2;
|
||||
const int mid = Y + halfheight;
|
||||
|
||||
W = min( peaks, W );
|
||||
|
||||
if ( Waveform::fill )
|
||||
{
|
||||
j = start;
|
||||
|
|
Loading…
Reference in New Issue