Minor cleanups.
This commit is contained in:
parent
85ed98e040
commit
f6d5123e35
|
@ -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();
|
||||
|
||||
|
|
11
Waveform.C
11
Waveform.C
|
@ -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) );
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue