1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

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

This commit is contained in:
ed 2018-12-20 12:31:44 +00:00
parent d45842ead3
commit ca9a50ea82

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)