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:
parent
725079f6bc
commit
5a4e004fea
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue