From 8b8f0fc1bd2a845515a6069923200b912aa1a27a Mon Sep 17 00:00:00 2001 From: George Reales Date: Mon, 10 Aug 2020 12:59:00 +0200 Subject: [PATCH] Update PluginEditor.cpp --- Source/PluginEditor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 6091bfd..d363ce6 100755 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -230,7 +230,12 @@ void ObxdAudioProcessorEditor::placeLabel (int x, int y, String text) ButtonList* ObxdAudioProcessorEditor::addList (int x, int y, int width, int height, ObxdAudioProcessor& filter, int parameter, String /*name*/, Image img) { - ButtonList *bl = new ButtonList (img, height*2); + #if JUCE_WINDOWS || JUCE_LINUX + ButtonList *bl = new ButtonList (img, height); + #else + ButtonList *bl = new ButtonList (img, height*2); + #endif + buttonListAttachments.add (new ButtonList::ButtonListAttachment (filter.getPluginState(), filter.getEngineParameterId (parameter), *bl));