Mixer: Don't redraw mixer strips unnecessarily.
This commit is contained in:
parent
b93041a0bd
commit
bdbed2a463
|
@ -131,15 +131,8 @@ void Mixer_Strip::cb_handle(Fl_Widget* o) {
|
|||
// parent()->parent()->damage( FL_DAMAGE_ALL, x(), y(), w(), h() );
|
||||
if ( o == close_button )
|
||||
((Mixer*)parent())->remove( this );
|
||||
else if ( o == inputs_counter )
|
||||
configure_ports( ((Fl_Counter*)o)->value() );
|
||||
else if ( o == name_field )
|
||||
name( name_field->value() );
|
||||
/* else if ( o == controllable_button ) */
|
||||
/* { */
|
||||
/* controllable( controllable_button->value() ); */
|
||||
/* // configure_ports( channels() ); */
|
||||
/* } */
|
||||
else if ( o == prepost_button )
|
||||
{
|
||||
if ( ((Fl_Button*)o)->value() )
|
||||
|
@ -454,14 +447,14 @@ Mixer_Strip::handle ( int m )
|
|||
switch ( m )
|
||||
{
|
||||
case FL_ENTER:
|
||||
// orig_color = color();
|
||||
// color( FL_BLACK );
|
||||
redraw();
|
||||
orig_color = name_field->color();
|
||||
color( FL_BLACK );
|
||||
name_field->redraw();
|
||||
return 1;
|
||||
break;
|
||||
case FL_LEAVE:
|
||||
// color( orig_color );
|
||||
redraw();
|
||||
name_field->color( orig_color );
|
||||
name_field->redraw();
|
||||
return 1;
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -83,7 +83,6 @@ public:
|
|||
|
||||
LOG_CREATE_FUNC( Mixer_Strip );
|
||||
|
||||
Fl_Counter *inputs_counter;
|
||||
void process ( unsigned int nframes );
|
||||
|
||||
static void configure_outputs ( Fl_Widget *o, void *v );
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
|
||||
|
||||
|
||||
|
||||
Module_Parameter_Editor::Module_Parameter_Editor ( Module *module ) : Fl_Double_Window( 0, 0, 800, 600 )
|
||||
{
|
||||
_module = module;
|
||||
|
|
Loading…
Reference in New Issue