1
0
Fork 0
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:
ed 2021-09-09 16:33:11 +01:00
parent f17425c880
commit 1d55452b78

View file

@ -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();
}
}