From 5a4e004feaa6fc32b08989254eec6d7c657b6d56 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 27 Nov 2018 15:49:22 +0000 Subject: [PATCH] VST2: Fixed a scaling issue causing some non-DPI aware plug-ins to open with incorrect editor bounds --- .../format_types/juce_VSTPluginFormat.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index c00cf98995..61df829766 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -3084,9 +3084,8 @@ private: pluginRespondsToDPIChanges = plugin.pluginCanDo ("supportsViewDpiScaling") > 0; - if (pluginRespondsToDPIChanges) - if (auto* peer = getTopLevelComponent()->getPeer()) - setScaleFactorAndDispatchMessage (peer->getPlatformScaleFactor()); + if (auto* peer = getTopLevelComponent()->getPeer()) + setScaleFactorAndDispatchMessage (peer->getPlatformScaleFactor()); #if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE std::unique_ptr dpiDisabler;