Don't attempt to draw more peaks than were actually read!

This commit is contained in:
Jonathan Moore Liles 2008-04-17 10:45:36 -05:00
parent 4543d48c41
commit c8b872ae41
1 changed files with 2 additions and 0 deletions

View File

@ -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;