Browse Source

Don't bother drawing a DPM if it's clipped.

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
5395cb43e2
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      Mixer/DPM.C

+ 3
- 0
Mixer/DPM.C View File

@@ -116,6 +116,9 @@ DPM::draw ( void )
snprintf( peak_string, sizeof( peak_string ), "%.1f", peak() );
tooltip( peak_string );

if ( ! fl_not_clipped( x(), y(), w(), h() ) )
return;

int v = pos( value() );
int pv = pos( peak() );



Loading…
Cancel
Save