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

VST3: Always resize host window in onSize() when running in hiDPI Cubase 10 on Windows

This commit is contained in:
ed 2019-01-23 09:10:01 +00:00
parent 853ec552f1
commit ada0a052f8

View file

@ -909,8 +909,6 @@ private:
w = roundToInt (w / editorScaleFactor);
h = roundToInt (h / editorScaleFactor);
bool needToResizeHostWindow = false;
if (getHostType().type == PluginHostType::SteinbergCubase10)
{
auto integerScaleFactor = (int) std::round (editorScaleFactor);
@ -921,8 +919,6 @@ private:
{
w /= integerScaleFactor;
h /= integerScaleFactor;
needToResizeHostWindow = true;
}
}
#endif
@ -938,7 +934,7 @@ private:
peer->updateBounds();
#if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE
if (needToResizeHostWindow)
if (getHostType().type == PluginHostType::SteinbergCubase10)
component->resizeHostWindow();
#endif
}