zynaddsubfx

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

commit 6a7b959900f02f7722b6ac09ae73600f6fa92fbd
parent a789866de4d45a784c1f4d95fcf5a1938347baef
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Tue,  8 Dec 2020 21:04:29 -0500

OscilGen: Fix FLTK GUI glitch

Sliders previously used a char type override for handling updates.
This commit adds the int type override as the backend APIs have updated.

Diffstat:
Msrc/UI/OscilGenUI.fl | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/UI/OscilGenUI.fl b/src/UI/OscilGenUI.fl @@ -81,7 +81,15 @@ class OGSlider {: {public Fl_Osc_TSlider} } { code {phase=false; } {} } Function {OSC_value(char c)} {open return_type void - } { code {value(phase ? c : 127-c); + } { code { + value(phase ? c : 127-c); + selection_color(value() == reset_value ? 0 : 222); + redraw(); + } {} } + + Function {OSC_value(int c)} {open return_type void + } { code { + value(phase ? c : 127-c); selection_color(value() == reset_value ? 0 : 222); redraw(); } {} }