Browse Source

VST2: Fixed a scaling issue causing some non-DPI aware plug-ins to open with incorrect editor bounds

tags/2021-05-28
ed 7 years ago
parent
commit
5a4e004fea
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 2
- 3
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -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<ScopedDPIAwarenessDisabler> dpiDisabler;


Loading…
Cancel
Save