Browse Source

VST2: Fix scaling bug in hosts which don't support the sizeWindow call

tags/2021-05-28
ed 6 years ago
parent
commit
ca9a50ea82
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 5
- 0
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -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)


Loading…
Cancel
Save