Skip to content

Commit

Permalink
VST3: Check for non-integer scale factors when running in DPI-aware C…
Browse files Browse the repository at this point in the history
…ubase 10
  • Loading branch information
ed95 committed Dec 20, 2018
1 parent ca9a50e commit 55ccb3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,10 @@ class JuceVST3EditController : public Vst::EditController,
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();
Expand Down

0 comments on commit 55ccb3f

Please sign in to comment.