Get rid of broken log code.

This commit is contained in:
Jonathan Moore Liles 2008-03-14 00:45:30 -05:00
parent f2bdcbb402
commit 00bf99a6bf
1 changed files with 6 additions and 6 deletions

View File

@ -69,14 +69,14 @@ Waveform::draw ( int ox, int X, int Y, int W, int H, Audio_File *_clip, int chan
p.max *= _scale; p.max *= _scale;
p.min *= _scale; p.min *= _scale;
if ( Waveform::logarithmic )
{
p.max = 10.0f * log10f( p.max );
p.min = 10.0f * log10f( p.min );
}
const float diff = fabs( p.max - p.min ); const float diff = fabs( p.max - p.min );
/* if ( Waveform::logarithmic ) */
/* { */
/* p.max = 10.0f * log10f( p.max ); */
/* p.min = 10.0f * log10f( p.min ); */
/* } */
if ( diff > 2.0f ) if ( diff > 2.0f )
fl_color( FL_RED ); fl_color( FL_RED );
else else