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

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

This commit is contained in:
ed 2018-11-27 15:49:22 +00:00
parent 725079f6bc
commit 5a4e004fea

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;