From ddd4e84b9efb8798a152c265fc020a158749e1d4 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 4 Jun 2019 10:58:51 +0100 Subject: [PATCH] VST3: Use Windows scale factor when running in FL Studio to avoid resizing glitches when custom scale factor is set --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 5584361cb6..66376c105d 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1267,8 +1267,9 @@ private: tresult PLUGIN_API setContentScaleFactor (Steinberg::IPlugViewContentScaleSupport::ScaleFactor factor) override { #if ! JUCE_MAC - // Cubase 10 doesn't support non-integer scale factors... - if (getHostType().type == PluginHostType::SteinbergCubase10) + auto hostType = getHostType().type; + + if (hostType == PluginHostType::SteinbergCubase10 || hostType == PluginHostType::FruityLoops) { if (component.get() != nullptr) if (auto* peer = component->getPeer())