mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST3 Host: Ensure that plug-ins without IPlugViewContentScaleSupport support are resized correctly when the native scale factor changes
This commit is contained in:
parent
f17425c880
commit
1d55452b78
1 changed files with 4 additions and 0 deletions
|
|
@ -1512,6 +1512,8 @@ struct VST3PluginWindow : public AudioProcessorEditor,
|
|||
|
||||
if (pluginHandle != HandleFormat{} && scaleInterface != nullptr)
|
||||
scaleInterface->setContentScaleFactor ((Steinberg::IPlugViewContentScaleSupport::ScaleFactor) nativeScaleFactor);
|
||||
else
|
||||
resizeToFit();
|
||||
}
|
||||
|
||||
void resizeToFit()
|
||||
|
|
@ -1599,6 +1601,8 @@ private:
|
|||
|
||||
if (scaleInterface != nullptr)
|
||||
scaleInterface->setContentScaleFactor ((Steinberg::IPlugViewContentScaleSupport::ScaleFactor) nativeScaleFactor);
|
||||
else
|
||||
resizeToFit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue