Mixer: Define minimum height for mixer strips.

This commit is contained in:
Jonathan Moore Liles 2010-01-22 22:29:12 -06:00
parent 5395cb43e2
commit 2b32c8fc4e
2 changed files with 5 additions and 0 deletions

View File

@ -252,6 +252,9 @@ Mixer::rows ( int n )
else else
sh = (scroll->h() - 18) / n; sh = (scroll->h() - 18) / n;
if ( sh < Mixer_Strip::min_h() )
return;
int tw = 0; int tw = 0;
for ( int i = 0; i < mixer_strips->children(); ++i ) for ( int i = 0; i < mixer_strips->children(); ++i )

View File

@ -52,6 +52,8 @@ class Mixer_Strip : public Fl_Group, public Loggable {
public: public:
static int min_h ( void ) { return 250; }
Mixer_Strip(int X, int Y, int W, int H, const char *L = 0); Mixer_Strip(int X, int Y, int W, int H, const char *L = 0);
Mixer_Strip( const char *name, int channels ); Mixer_Strip( const char *name, int channels );
Mixer_Strip(); /* for log create */ Mixer_Strip(); /* for log create */