Browse Source

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

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
c8b872ae41
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Timeline/Waveform.C

+ 2
- 0
Timeline/Waveform.C 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;


Loading…
Cancel
Save