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:
parent
d45842ead3
commit
ca9a50ea82
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue