1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VST2: Fixed a bug when asking the host to resize a plug-in window

This commit is contained in:
tpoole 2017-07-27 14:59:33 +01:00
parent 04f459b22e
commit ee8be93712

View file

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