1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

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

This commit is contained in:
hogliux 2017-08-08 09:26:30 +01:00
parent 8c0331b605
commit 368d2542a1

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);