Minor cleanups.

pull/3/head
Jonathan Moore Liles 2008-03-07 22:52:49 -06:00
parent 85ed98e040
commit f6d5123e35
2 changed files with 10 additions and 4 deletions

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();

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, mid + (H / 2 * p.min), x, mid + (H / 2 * p.max) );
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) );
}