Minor cleanups.

This commit is contained in:
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 ) Control_Track ( int X, int Y, int W, int H ) : Track( X, Y, W, H )
{ {
color( fl_darker( FL_GREEN ) );
} }
void void
@ -50,7 +51,7 @@ public:
fl_line_style( FL_SOLID, 4 ); fl_line_style( FL_SOLID, 4 );
fl_color( FL_RED ); fl_color( selection_color() );
fl_begin_line(); fl_begin_line();

View File

@ -65,11 +65,16 @@ draw_waveform ( int ox, int X, int Y, int W, int H, Audio_File *_clip, int chann
else else
fl_color( color ); fl_color( color );
if ( p.min < -1.0 || p.max > 1.0 )
fl_color( FL_RED );
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) );
} }
if ( outline ) if ( outline )