gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 8a5a04367f4614d76998108b02ca8bfc929edf72
parent d59c7b35fc2ff6cc699d1df277a6b6cadb792a18
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Thu, 10 Mar 2022 23:20:33 +0100

fix toggle switches showing the opposite state

Diffstat:
Msource/jucePlugin/ui/Virus_Buttons.cpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/source/jucePlugin/ui/Virus_Buttons.cpp b/source/jucePlugin/ui/Virus_Buttons.cpp @@ -7,12 +7,12 @@ namespace Buttons { HandleButton::HandleButton() : DrawableButton("HandleButton", DrawableButton::ImageRaw) { - const auto up = Drawable::createFromImageData(BinaryData::Handle_18x47_png, BinaryData::Handle_18x47_pngSize); - const auto down = up->createCopy(); + const auto down = Drawable::createFromImageData(BinaryData::Handle_18x47_png, BinaryData::Handle_18x47_pngSize); + const auto up = down->createCopy(); setColour(DrawableButton::ColourIds::backgroundColourId, Colours::transparentBlack); setColour(DrawableButton::ColourIds::backgroundOnColourId, Colours::transparentBlack); setClickingTogglesState(true); - down->setOriginWithOriginalSize({-18, 0}); + up->setOriginWithOriginalSize({-18, 0}); setImages(down.get(), nullptr, up.get(), nullptr, up.get(), nullptr, down.get()); }