Browse Source

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

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

+ 1
- 5
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

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


Loading…
Cancel
Save