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

This commit is contained in:
Jonathan Moore Liles 2010-01-22 22:00:51 -06:00
parent ce6aefe2e2
commit 5395cb43e2
1 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,9 @@ DPM::draw ( void )
snprintf( peak_string, sizeof( peak_string ), "%.1f", peak() ); snprintf( peak_string, sizeof( peak_string ), "%.1f", peak() );
tooltip( peak_string ); tooltip( peak_string );
if ( ! fl_not_clipped( x(), y(), w(), h() ) )
return;
int v = pos( value() ); int v = pos( value() );
int pv = pos( peak() ); int pv = pos( peak() );