Browse Source

VST: Removed JUCE_WIN_PER_MONITOR_DPI_AWARE check around setThreadDPIAwarenessForWindow() call

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

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

@@ -83,7 +83,7 @@ JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4355)
//==============================================================================
namespace juce
{
#if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE
#if JUCE_WINDOWS
extern void setThreadDPIAwarenessForWindow (HWND);
#endif
@@ -2865,9 +2865,7 @@ public:
#if JUCE_WINDOWS
if (pluginHWND != 0)
{
#if JUCE_WIN_PER_MONITOR_DPI_AWARE
setThreadDPIAwarenessForWindow (pluginHWND);
#endif
MoveWindow (pluginHWND, pos.getX(), pos.getY(),
roundToInt (getWidth() * nativeScaleFactor),
@@ -3130,9 +3128,7 @@ private:
// very dodgy logic to decide which size is right.
if (std::abs (rw - w) > 350 || std::abs (rh - h) > 350)
{
#if JUCE_WIN_PER_MONITOR_DPI_AWARE
setThreadDPIAwarenessForWindow (pluginHWND);
#endif
SetWindowPos (pluginHWND, 0,
0, 0, roundToInt (rw * nativeScaleFactor), roundToInt (rh * nativeScaleFactor),


Loading…
Cancel
Save