From e452e282f441fcf99996919f09a6509851587cd8 Mon Sep 17 00:00:00 2001 From: Gordon JC Pearce Date: Wed, 7 Jan 2026 11:38:04 +0000 Subject: [PATCH] fixed button update bug in Windows --- plugin/Makefile | 3 ++- plugin/ui.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin/Makefile b/plugin/Makefile index 051ef24..9881fa3 100644 --- a/plugin/Makefile +++ b/plugin/Makefile @@ -34,7 +34,8 @@ include ../dpf/Makefile.plugins.mk SKIP_NATIVE_AUDIO_FALLBACK = true -TARGETS += jack lv2_sep vst3 clap +# omitting LV2 for the moment until I figure out cross-compiling +TARGETS += jack vst2 vst3 clap all: $(TARGETS) diff --git a/plugin/ui.cpp b/plugin/ui.cpp index cc49be4..779a545 100644 --- a/plugin/ui.cpp +++ b/plugin/ui.cpp @@ -258,15 +258,17 @@ void DistrhoUIPeacock::parameterChanged(uint32_t index, float value) { sw1 &= 0xf8; // mask if (value > 2) value = 2; sw1 |= (1 << (int)value); - xBtn16ft->repaint(); // will repaint all the panel + repaint(); break; case pSqr: sw1 &= 0xf7; sw1 |= ((value >= 0.5)) << 3; + repaint(); break; case pSaw: sw1 &= 0xef; sw1 |= (value > 0.5) << 4; + repaint(); break; case pChorusMode: @@ -283,6 +285,8 @@ void DistrhoUIPeacock::parameterChanged(uint32_t index, float value) { sw1 |= 0x00; break; } + repaint(); + break; } } @@ -340,6 +344,7 @@ void DistrhoUIPeacock::imageButtonClicked(ImageButton* imgBtn, int) { default: break; } + repaint(); } void DistrhoUIPeacock::onDisplay() {