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

VST2: Fix a conversion warning in the wrapper and prevent resizing the plug-in window in resizeHostWindow() to fix some flickering when resizing

This commit is contained in:
ed 2018-12-21 11:17:09 +00:00
parent f38888fc59
commit 98219bf98e

View file

@ -1258,7 +1258,7 @@ public:
if (! getHostType().isReceptor())
addMouseListener (this, true);
#if JUCE_WIN_PER_MONITOR_DPI_AWARE
wrapper.editorScaleFactor = Desktop::getInstance().getDisplays().getMainDisplay().scale;
wrapper.editorScaleFactor = static_cast<float> (Desktop::getInstance().getDisplays().getMainDisplay().scale);
#endif
#endif
@ -1489,8 +1489,9 @@ public:
GetWindowRect (w, &windowPos);
GetWindowRect (parent, &parentPos);
SetWindowPos (w, 0, 0, 0, newWidth + dw, newHeight + dh,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOOWNERZORDER);
if (w != (HWND) getWindowHandle())
SetWindowPos (w, 0, 0, 0, newWidth + dw, newHeight + dh,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOOWNERZORDER);
dw = (parentPos.right - parentPos.left) - (windowPos.right - windowPos.left);
dh = (parentPos.bottom - parentPos.top) - (windowPos.bottom - windowPos.top);