From a7c5337568d150449cd203a252be61c0c528e00c Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 18 Feb 2021 14:31:49 +0000 Subject: [PATCH] VST/VST3: Removed a workaround for checking whether DPI-aware windows were incorrectly scaled in editor resized() callback --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 5 ----- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 5 ----- 2 files changed, 10 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index e45fe10dbd..58b34493bb 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -1117,11 +1117,6 @@ public: { auto newBounds = getLocalBounds(); - #if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE - if (! lastBounds.isEmpty() && isWithin (newBounds.toDouble().getAspectRatio(), lastBounds.toDouble().getAspectRatio(), 0.001)) - return; - #endif - { const ScopedValueSetter resizingChildSetter (resizingChild, true); pluginEditor->setBounds (pluginEditor->getLocalArea (this, newBounds).withPosition (0, 0)); diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 7f6d68668e..2ffe8185cc 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1580,11 +1580,6 @@ private: { auto newBounds = getLocalBounds(); - #if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE - if (! lastBounds.isEmpty() && isWithin (newBounds.toDouble().getAspectRatio(), lastBounds.toDouble().getAspectRatio(), 0.001)) - return; - #endif - { const ScopedValueSetter resizingChildSetter (resizingChild, true); pluginEditor->setBounds (pluginEditor->getLocalArea (this, newBounds).withPosition (0, 0));