diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index cb852e8f6f..e2f32b7e0b 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -1462,6 +1462,11 @@ public: int dh = 0; const int frameThickness = GetSystemMetrics (SM_CYFIXEDFRAME); + #if JUCE_WIN_PER_MONITOR_DPI_AWARE + newWidth = roundToInt (newWidth * wrapper.editorScaleFactor); + newHeight = roundToInt (newHeight * wrapper.editorScaleFactor); + #endif + HWND w = (HWND) getWindowHandle(); while (w != 0)