mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
Ensure that OpenGL VST2 plug-ins are scaled correctly in Live 10
This commit is contained in:
parent
7d4bf8656e
commit
fb614b0cc9
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue