From 0b72de6b363800e55b89833119202e63ad09d582 Mon Sep 17 00:00:00 2001 From: George Reales Date: Sat, 6 Jun 2020 20:12:03 +0200 Subject: [PATCH] iOS Build Fixes --- Source/PluginGui.cpp | 4 ++-- Source/PluginGui.h | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Source/PluginGui.cpp b/Source/PluginGui.cpp index d670fd7..b534ad4 100644 --- a/Source/PluginGui.cpp +++ b/Source/PluginGui.cpp @@ -1157,9 +1157,9 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) exportButton->addListener (this); exportButton->setColour (TextButton::buttonColourId, Colour (0xff007f00)); exportButton->setColour (TextButton::buttonOnColourId, Colours::lime); - +#if!JUCE_IOS exportButton->setBounds (728, 512, 96, 24); - +#endif loadButton.reset (new TextButton ("load button")); addAndMakeVisible (loadButton.get()); loadButton->setButtonText (TRANS("Load")); diff --git a/Source/PluginGui.h b/Source/PluginGui.h index 533a2f4..dafaa01 100644 --- a/Source/PluginGui.h +++ b/Source/PluginGui.h @@ -130,21 +130,21 @@ public: private: //[UserVariables] -- You can add your own custom variables in this section. - class OPLComboBoxLookAndFeelMethods: - public LookAndFeel_V3 - { - virtual PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox& comBox, Label& label) override{ - PopupMenu::Options options = LookAndFeel_V3::getOptionsForComboBoxPopupMenu(comBox, label); - #if JUCE_IOS - if (PluginHostType::getPluginLoadedAs() == AudioProcessor::wrapperType_AudioUnitv3) - { - if (options.getTargetComponent() != nullptr) - return options.withParentComponent(options.getTargetComponent()->getTopLevelComponent()); - } - #endif - return options; - }; +class OPLComboBoxLookAndFeelMethods: + public OPLLookAndFeel +{ + virtual PopupMenu::Options getOptionsForComboBoxPopupMenu (ComboBox& comBox, Label& label) override{ + PopupMenu::Options options = OPLLookAndFeel::getOptionsForComboBoxPopupMenu(comBox, label); +#if JUCE_IOS + if (PluginHostType::getPluginLoadedAs() == AudioProcessor::wrapperType_AudioUnitv3) + { + if (options.getTargetComponent() != nullptr) + return options.withParentComponent(options.getTargetComponent()->getTopLevelComponent()); + } +#endif +return options; }; +}; std::unique_ptr oplComboBoxLookAndFeel;