zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 6d9dcb0918ae4b69406d828e8b004d45de1abf62
parent a40a4a83518ccd14fde19051919e6f9ab75be827
Author: fundamental <[email protected]>
Date:   Wed, 18 Feb 2015 21:47:48 -0500

UI: Fix Fl_Osc_VSlider Integer OSC Handler

Diffstat:
Msrc/UI/Fl_Osc_VSlider.H | 1+
Msrc/UI/Fl_Osc_VSlider.cpp | 5+++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/UI/Fl_Osc_VSlider.H b/src/UI/Fl_Osc_VSlider.H @@ -11,6 +11,7 @@ class Fl_Osc_VSlider:public Fl_Value_Slider, public Fl_Osc_Widget virtual ~Fl_Osc_VSlider(void); void OSC_value(char); + void OSC_value(int); void OSC_value(float); void init(std::string, char type = 'i'); diff --git a/src/UI/Fl_Osc_VSlider.cpp b/src/UI/Fl_Osc_VSlider.cpp @@ -28,6 +28,11 @@ void Fl_Osc_VSlider::OSC_value(char v) { Fl_Slider::value(v+minimum()); } + +void Fl_Osc_VSlider::OSC_value(int v) +{ + Fl_Slider::value(v+minimum()); +} void Fl_Osc_VSlider::OSC_value(float v) {