mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-23 01:44:22 +00:00
VST: Ensure that reported bounds are consistent on all platforms
This commit is contained in:
parent
9a6b37d499
commit
150d9ea6b1
2 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue