From 1d55452b7810b71a04f405807f10a3fbf5fbb101 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 9 Sep 2021 16:33:11 +0100 Subject: [PATCH] VST3 Host: Ensure that plug-ins without IPlugViewContentScaleSupport support are resized correctly when the native scale factor changes --- .../format_types/juce_VST3PluginFormat.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index d34af91239..6cb5ae837b 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -1512,6 +1512,8 @@ struct VST3PluginWindow : public AudioProcessorEditor, if (pluginHandle != HandleFormat{} && scaleInterface != nullptr) scaleInterface->setContentScaleFactor ((Steinberg::IPlugViewContentScaleSupport::ScaleFactor) nativeScaleFactor); + else + resizeToFit(); } void resizeToFit() @@ -1599,6 +1601,8 @@ private: if (scaleInterface != nullptr) scaleInterface->setContentScaleFactor ((Steinberg::IPlugViewContentScaleSupport::ScaleFactor) nativeScaleFactor); + else + resizeToFit(); } }