diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 21570f6157..9b0c7e9b15 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -2866,9 +2866,9 @@ public: #else void paint (Graphics& g) override { + #if JUCE_LINUX || JUCE_BSD if (isOpen) { - #if JUCE_LINUX || JUCE_BSD if (pluginWindow != 0) { auto clip = g.getClipBounds(); @@ -2877,9 +2877,9 @@ public: static_cast (clip.getWidth()), static_cast (clip.getHeight()), True); } - #endif } else + #endif { g.fillAll (Colours::black); }