Browse Source

VST/VST3: Removed a workaround for checking whether DPI-aware windows were incorrectly scaled in editor resized() callback

tags/2021-05-28
ed 4 years ago
parent
commit
a7c5337568
2 changed files with 0 additions and 10 deletions
  1. +0
    -5
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
  2. +0
    -5
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 0
- 5
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -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<bool> resizingChildSetter (resizingChild, true);
pluginEditor->setBounds (pluginEditor->getLocalArea (this, newBounds).withPosition (0, 0));


+ 0
- 5
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -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<bool> resizingChildSetter (resizingChild, true);
pluginEditor->setBounds (pluginEditor->getLocalArea (this, newBounds).withPosition (0, 0));


Loading…
Cancel
Save