Fix another 64-bit bug in Module insertion.
This commit is contained in:
parent
1febc10186
commit
83e51b2f20
|
@ -399,7 +399,7 @@ Module::draw_label ( void )
|
||||||
void
|
void
|
||||||
Module::insert_menu_cb ( const Fl_Menu_ *m )
|
Module::insert_menu_cb ( const Fl_Menu_ *m )
|
||||||
{
|
{
|
||||||
void * v = m->menu()[ m->value() ].user_data();
|
void * v = m->mvalue()->user_data();
|
||||||
|
|
||||||
if ( v )
|
if ( v )
|
||||||
{
|
{
|
||||||
|
@ -409,16 +409,16 @@ Module::insert_menu_cb ( const Fl_Menu_ *m )
|
||||||
|
|
||||||
switch ( id )
|
switch ( id )
|
||||||
{
|
{
|
||||||
case -1:
|
case 1:
|
||||||
mod = new JACK_Module();
|
mod = new JACK_Module();
|
||||||
break;
|
break;
|
||||||
case -2:
|
case 2:
|
||||||
mod = new Gain_Module();
|
mod = new Gain_Module();
|
||||||
break;
|
break;
|
||||||
case -3:
|
case 3:
|
||||||
mod = new Meter_Module();
|
mod = new Meter_Module();
|
||||||
break;
|
break;
|
||||||
case -4:
|
case 4:
|
||||||
mod = new Mono_Pan_Module();
|
mod = new Mono_Pan_Module();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -513,9 +513,9 @@ Module::menu ( void ) const
|
||||||
{
|
{
|
||||||
insert_menu = new Fl_Menu_Button( 0, 0, 0, 0 );
|
insert_menu = new Fl_Menu_Button( 0, 0, 0, 0 );
|
||||||
|
|
||||||
insert_menu->add( "Gain", 0, 0, new unsigned long(-2) );
|
insert_menu->add( "Gain", 0, 0, new unsigned long(2) );
|
||||||
insert_menu->add( "Meter", 0, 0, new unsigned long(-3) );
|
insert_menu->add( "Meter", 0, 0, new unsigned long(3) );
|
||||||
insert_menu->add( "Mono Pan", 0, 0, new unsigned long(-4) );
|
insert_menu->add( "Mono Pan", 0, 0, new unsigned long(4) );
|
||||||
|
|
||||||
Plugin_Module::add_plugins_to_menu( insert_menu );
|
Plugin_Module::add_plugins_to_menu( insert_menu );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue