Browse Source

VST2: Fixed an issue with resizing plug-ins in Ableton Live

tags/2021-05-28
hogliux 8 years ago
parent
commit
368d2542a1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 3
- 1
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -1322,7 +1322,9 @@ public:
if (auto host = wrapper.hostCallback)
{
if (host (wrapper.getVstEffectInterface(), hostOpcodeCanHostDo, 0, 0, const_cast<char*> ("sizeWindow"), 0) == (pointer_sized_int) 1)
auto status = host (wrapper.getVstEffectInterface(), hostOpcodeCanHostDo, 0, 0, const_cast<char*> ("sizeWindow"), 0);
if (status == (pointer_sized_int) 1 || getHostType().isAbletonLive())
{
isInSizeWindow = true;
sizeWasSuccessful = (host (wrapper.getVstEffectInterface(), hostOpcodeWindowSize, newWidth, newHeight, 0, 0) != 0);


Loading…
Cancel
Save