Browse Source

Ensure that OpenGL VST2 plug-ins are scaled correctly in Live 10

tags/2021-05-28
ed 6 years ago
parent
commit
fb614b0cc9
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp

+ 5
- 2
modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp View File

@@ -48,9 +48,12 @@ std::function<bool(AudioProcessor&)> 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;
}


Loading…
Cancel
Save