From 2c1081d2a85b8dff0db48721b979017e7323c3a4 Mon Sep 17 00:00:00 2001 From: reuk Date: Wed, 16 Jun 2021 13:50:43 +0100 Subject: [PATCH] VST Host: Fix graphical artefacts when resizing editor views on Windows --- .../format_types/juce_VSTPluginFormat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }