Mixer: Don't redraw mixer strips unnecessarily.

This commit is contained in:
Jonathan Moore Liles 2009-12-26 00:03:52 -06:00
parent b93041a0bd
commit bdbed2a463
3 changed files with 5 additions and 14 deletions

View File

@ -131,15 +131,8 @@ void Mixer_Strip::cb_handle(Fl_Widget* o) {
// parent()->parent()->damage( FL_DAMAGE_ALL, x(), y(), w(), h() ); // parent()->parent()->damage( FL_DAMAGE_ALL, x(), y(), w(), h() );
if ( o == close_button ) if ( o == close_button )
((Mixer*)parent())->remove( this ); ((Mixer*)parent())->remove( this );
else if ( o == inputs_counter )
configure_ports( ((Fl_Counter*)o)->value() );
else if ( o == name_field ) else if ( o == name_field )
name( name_field->value() ); name( name_field->value() );
/* else if ( o == controllable_button ) */
/* { */
/* controllable( controllable_button->value() ); */
/* // configure_ports( channels() ); */
/* } */
else if ( o == prepost_button ) else if ( o == prepost_button )
{ {
if ( ((Fl_Button*)o)->value() ) if ( ((Fl_Button*)o)->value() )
@ -454,14 +447,14 @@ Mixer_Strip::handle ( int m )
switch ( m ) switch ( m )
{ {
case FL_ENTER: case FL_ENTER:
// orig_color = color(); orig_color = name_field->color();
// color( FL_BLACK ); color( FL_BLACK );
redraw(); name_field->redraw();
return 1; return 1;
break; break;
case FL_LEAVE: case FL_LEAVE:
// color( orig_color ); name_field->color( orig_color );
redraw(); name_field->redraw();
return 1; return 1;
break; break;
default: default:

View File

@ -83,7 +83,6 @@ public:
LOG_CREATE_FUNC( Mixer_Strip ); LOG_CREATE_FUNC( Mixer_Strip );
Fl_Counter *inputs_counter;
void process ( unsigned int nframes ); void process ( unsigned int nframes );
static void configure_outputs ( Fl_Widget *o, void *v ); static void configure_outputs ( Fl_Widget *o, void *v );

View File

@ -38,7 +38,6 @@
Module_Parameter_Editor::Module_Parameter_Editor ( Module *module ) : Fl_Double_Window( 0, 0, 800, 600 ) Module_Parameter_Editor::Module_Parameter_Editor ( Module *module ) : Fl_Double_Window( 0, 0, 800, 600 )
{ {
_module = module; _module = module;