From fb614b0cc96e99beec46c61c15728c6174b8f25d Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 7 Mar 2019 16:43:05 +0000 Subject: [PATCH] Ensure that OpenGL VST2 plug-ins are scaled correctly in Live 10 --- .../utility/juce_PluginUtilities.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp b/modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp index 2665048b06..9b5ab3706e 100644 --- a/modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp +++ b/modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp @@ -48,9 +48,12 @@ std::function PluginHostType::jucePlugInIsRunningInAudioS bool juce_shouldDoubleScaleNativeGLWindow() { auto wrapperType = PluginHostType::getPluginLoadedAs(); + auto hostType = getHostType().type; - if (wrapperType == AudioProcessor::wrapperType_VST || wrapperType == AudioProcessor::wrapperType_VST3) - return getHostType().type == PluginHostType::SteinbergCubase10; + if (wrapperType == AudioProcessor::wrapperType_VST) + return hostType == PluginHostType::SteinbergCubase10 || hostType == PluginHostType::AbletonLive10; + else if (wrapperType == AudioProcessor::wrapperType_VST3) + return hostType == PluginHostType::SteinbergCubase10; return false; }