diff --git a/extras/Introjucer/Source/Application/jucer_Application.h b/extras/Introjucer/Source/Application/jucer_Application.h
index c8fdbb6a92..3f6a344add 100644
--- a/extras/Introjucer/Source/Application/jucer_Application.h
+++ b/extras/Introjucer/Source/Application/jucer_Application.h
@@ -44,8 +44,6 @@ public:
//==============================================================================
void initialise (const String& commandLine)
{
- initialiseLogger ("log_");
-
LookAndFeel::setDefaultLookAndFeel (&lookAndFeel);
settings = new StoredSettings();
settings->initialise();
@@ -62,6 +60,8 @@ public:
}
}
+ initialiseLogger ("log_");
+
if (sendCommandLineToPreexistingInstance())
{
DBG ("Another instance is running - quitting...");
diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Android.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Android.h
index 0f1c981d98..b7224ac9f5 100644
--- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Android.h
+++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Android.h
@@ -271,6 +271,7 @@ private:
XmlElement* app = manifest->createNewChildElement ("application");
app->setAttribute ("android:label", "@string/app_name");
app->setAttribute ("android:icon", "@drawable/icon");
+ app->setAttribute ("android:hardwareAccelerated", "false"); // (using the 2D acceleration slows down openGL)
XmlElement* act = app->createNewChildElement ("activity");
act->setAttribute ("android:name", getActivityName());
diff --git a/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h b/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h
index f348480727..afd435de04 100644
--- a/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h
+++ b/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h
@@ -101,6 +101,7 @@ namespace
Project& project = projectSaver.getProject();
StringPairArray flags;
+ //flags.set ("JUCE_MODAL_LOOPS_PERMITTED", "0");
flags.set ("JucePlugin_Build_VST", valueToBool (shouldBuildVST (project)));
flags.set ("JucePlugin_Build_AU", valueToBool (shouldBuildAU (project)));
flags.set ("JucePlugin_Build_RTAS", valueToBool (shouldBuildRTAS (project)));
diff --git a/extras/JuceDemo/Builds/Android/AndroidManifest.xml b/extras/JuceDemo/Builds/Android/AndroidManifest.xml
index 4e25928736..ae8e066d3c 100644
--- a/extras/JuceDemo/Builds/Android/AndroidManifest.xml
+++ b/extras/JuceDemo/Builds/Android/AndroidManifest.xml
@@ -7,7 +7,7 @@
-
+
diff --git a/modules/juce_core/memory/juce_HeapBlock.h b/modules/juce_core/memory/juce_HeapBlock.h
index a6b284f134..08bd362915 100644
--- a/modules/juce_core/memory/juce_HeapBlock.h
+++ b/modules/juce_core/memory/juce_HeapBlock.h
@@ -295,8 +295,7 @@ private:
HeapBlockHelper::ThrowOnFail::check (data);
}
- JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (HeapBlock);
-
+ JUCE_DECLARE_NON_COPYABLE (HeapBlock);
JUCE_PREVENT_HEAP_ALLOCATION; // Creating a 'new HeapBlock' would be missing the point!
};
diff --git a/modules/juce_core/system/juce_PlatformDefs.h b/modules/juce_core/system/juce_PlatformDefs.h
index a4c1b06841..df9c5cb055 100644
--- a/modules/juce_core/system/juce_PlatformDefs.h
+++ b/modules/juce_core/system/juce_PlatformDefs.h
@@ -272,7 +272,7 @@ namespace juce
//==============================================================================
#if JUCE_ANDROID && ! DOXYGEN
#define JUCE_MODAL_LOOPS_PERMITTED 0
-#else
+#elif ! defined (JUCE_MODAL_LOOPS_PERMITTED)
/** Some operating environments don't provide a modal loop mechanism, so this flag can be
used to disable any functions that try to run a modal loop. */
#define JUCE_MODAL_LOOPS_PERMITTED 1
diff --git a/modules/juce_gui_basics/windows/juce_AlertWindow.cpp b/modules/juce_gui_basics/windows/juce_AlertWindow.cpp
index a218b80fc6..2fb5750d17 100644
--- a/modules/juce_gui_basics/windows/juce_AlertWindow.cpp
+++ b/modules/juce_gui_basics/windows/juce_AlertWindow.cpp
@@ -47,22 +47,20 @@ AlertWindow::AlertWindow (const String& title,
setMessage (message);
- for (int i = Desktop::getInstance().getNumComponents(); --i >= 0;)
+ Desktop& desktop = Desktop::getInstance();
+ for (int i = desktop.getNumComponents(); --i >= 0;)
{
- Component* const c = Desktop::getInstance().getComponent (i);
-
- if (c != nullptr && c->isAlwaysOnTop() && c->isShowing())
+ if (Component* const c = desktop.getComponent (i))
{
- setAlwaysOnTop (true);
- break;
+ if (c->isAlwaysOnTop() && c->isShowing())
+ {
+ setAlwaysOnTop (true);
+ break;
+ }
}
}
- if (! JUCEApplication::isStandaloneApp())
- setAlwaysOnTop (true); // for a plugin, make it always-on-top because the host windows are often top-level
-
AlertWindow::lookAndFeelChanged();
-
constrainer.setMinimumOnscreenAmounts (0x10000, 0x10000, 0x10000, 0x10000);
}