Browse Source

VST3: Check for non-integer scale factors when running in DPI-aware Cubase 10

tags/2021-05-28
ed 6 years ago
parent
commit
55ccb3f1d5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 4
- 0
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -1021,6 +1021,10 @@ private:
ed->setScaleFactor ((float) factor); ed->setScaleFactor ((float) factor);
#endif #endif
// Cubase 10 doesn't support non-integer scale factors...
if (getHostType().type == PluginHostType::SteinbergCubase10)
component->checkScaleFactorIsCorrect();
component->resizeHostWindow(); component->resizeHostWindow();
component->setTopLeftPosition (0, 0); component->setTopLeftPosition (0, 0);
component->repaint(); component->repaint();


Loading…
Cancel
Save