Browse Source

VST: Increased the scoped of a thread DPI awareness setter when creating plug-in editors on Windows

tags/2021-05-28
ed 4 years ago
parent
commit
7b68d5fa4b
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 6
- 1
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -3110,7 +3110,12 @@ private:
JUCE_END_IGNORE_WARNINGS_MSVC
RECT r;
GetWindowRect (pluginHWND, &r);
{
ScopedThreadDPIAwarenessSetter threadDpiAwarenessSetter { pluginHWND };
GetWindowRect (pluginHWND, &r);
}
auto w = (int) (r.right - r.left);
auto h = (int) (r.bottom - r.top);


Loading…
Cancel
Save