From ada0a052f8b5dcf60492ba4649d5bdff44b99dd3 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 23 Jan 2019 09:10:01 +0000 Subject: [PATCH] VST3: Always resize host window in onSize() when running in hiDPI Cubase 10 on Windows --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index bd85680056..984d441642 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -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 }