Browse Source

Minor cleanups.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
f6d5123e35
2 changed files with 8 additions and 2 deletions
  1. +2
    -1
      Control_Track.H
  2. +6
    -1
      Waveform.C

+ 2
- 1
Control_Track.H View File

@@ -29,6 +29,7 @@ public:

Control_Track ( int X, int Y, int W, int H ) : Track( X, Y, W, H )
{
color( fl_darker( FL_GREEN ) );
}

void
@@ -50,7 +51,7 @@ public:

fl_line_style( FL_SOLID, 4 );

fl_color( FL_RED );
fl_color( selection_color() );

fl_begin_line();



+ 6
- 1
Waveform.C View File

@@ -65,10 +65,15 @@ draw_waveform ( int ox, int X, int Y, int W, int H, Audio_File *_clip, int chann
else
fl_color( color );


if ( p.min < -1.0 || p.max > 1.0 )
{
fl_color( FL_RED );
fl_line( x, Y, x, Y + H );
}
else
fl_line( x, mid + (H / 2 * p.min), x, mid + (H / 2 * p.max) );

fl_line( x, mid + (H / 2 * p.min), x, mid + (H / 2 * p.max) );

}



Loading…
Cancel
Save