Browse Source

A cast is needed when passing a value from an FLTK widget to the ChannelHandler.

master
thesloth 22 years ago
parent
commit
4e6bf80c7a
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      SpiralSound/Plugins/SmoothPlugin/SmoothPluginGUI.C

+ 4
- 2
SpiralSound/Plugins/SmoothPlugin/SmoothPluginGUI.C View File

@@ -63,11 +63,13 @@ void SmoothPluginGUI::UpdateValues(SpiralPlugin *o)
}
inline void SmoothPluginGUI::cb_Down_i(Fl_Knob* o, void* v)
{ m_GUICH->Set("Down",o->value()); }
{ m_GUICH->Set("Down",(float)o->value()); }

void SmoothPluginGUI::cb_Down(Fl_Knob* o, void* v)
{ ((SmoothPluginGUI*)(o->parent()))->cb_Down_i(o,v);}

inline void SmoothPluginGUI::cb_Up_i(Fl_Knob* o, void* v)
{ m_GUICH->Set("Up",o->value()); }
{ m_GUICH->Set("Up",(float)o->value()); }

void SmoothPluginGUI::cb_Up(Fl_Knob* o, void* v)
{ ((SmoothPluginGUI*)(o->parent()))->cb_Up_i(o,v);}

Loading…
Cancel
Save