fixed button update bug in Windows
This commit is contained in:
parent
a3a2e0dd04
commit
e452e282f4
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue