From 55ccb3f1d5b6d102aedb797dcd547fe767678b10 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 20 Dec 2018 14:43:33 +0000 Subject: [PATCH] VST3: Check for non-integer scale factors when running in DPI-aware Cubase 10 --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 7dc80c86c9..5fe2f6b563 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1021,6 +1021,10 @@ private: ed->setScaleFactor ((float) factor); #endif + // Cubase 10 doesn't support non-integer scale factors... + if (getHostType().type == PluginHostType::SteinbergCubase10) + component->checkScaleFactorIsCorrect(); + component->resizeHostWindow(); component->setTopLeftPosition (0, 0); component->repaint();