1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

VST3: Use Windows scale factor when running in FL Studio to avoid resizing glitches when custom scale factor is set

This commit is contained in:
ed 2019-06-04 10:58:51 +01:00
parent e45b1d9924
commit ddd4e84b9e

View file

@ -1267,8 +1267,9 @@ private:
tresult PLUGIN_API setContentScaleFactor (Steinberg::IPlugViewContentScaleSupport::ScaleFactor factor) override
{
#if ! JUCE_MAC
// Cubase 10 doesn't support non-integer scale factors...
if (getHostType().type == PluginHostType::SteinbergCubase10)
auto hostType = getHostType().type;
if (hostType == PluginHostType::SteinbergCubase10 || hostType == PluginHostType::FruityLoops)
{
if (component.get() != nullptr)
if (auto* peer = component->getPeer())