Browse Source

VST: Ensure that reported bounds are consistent on all platforms

tags/2021-05-28
ed 6 years ago
parent
commit
150d9ea6b1
2 changed files with 6 additions and 5 deletions
  1. +2
    -4
      modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp
  2. +4
    -1
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 2
- 4
modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp View File

@@ -1126,10 +1126,6 @@ struct VST3PluginWindow : public AudioProcessorEditor,
warnOnFailure (view->setFrame (this));
#if JUCE_MAC
resizeToFit();
#endif
Steinberg::IPlugViewContentScaleSupport* scaleInterface = nullptr;
view->queryInterface (Steinberg::IPlugViewContentScaleSupport::iid, (void**) &scaleInterface);
@@ -1138,6 +1134,8 @@ struct VST3PluginWindow : public AudioProcessorEditor,
pluginRespondsToDPIChanges = true;
scaleInterface->release();
}
resizeToFit();
}
~VST3PluginWindow() override


+ 4
- 1
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -2776,7 +2776,10 @@ public:
activeVSTWindows.add (this);
setSize (1, 1);
Vst2::ERect* rect = nullptr;
dispatch (Vst2::effEditGetRect, 0, 0, &rect, 0);
setSize (rect->right - rect->left, rect->bottom - rect->top);
setOpaque (true);
setVisible (true);
}


Loading…
Cancel
Save