Compare commits

..

2 Commits

Author SHA1 Message Date
Gordon JC Pearce 58ee2d4ca8 Merge branch 'gui' into calibration 2026-01-08 16:19:59 +00:00
Gordon JC Pearce e452e282f4 fixed button update bug in Windows 2026-01-07 11:38:04 +00:00
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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() {