mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
VST3: Use Windows scale factor when running in FL Studio to avoid resizing glitches when custom scale factor is set
This commit is contained in:
parent
e45b1d9924
commit
ddd4e84b9e
1 changed files with 3 additions and 2 deletions
|
|
@ -1267,8 +1267,9 @@ private:
|
|||
tresult PLUGIN_API setContentScaleFactor (Steinberg::IPlugViewContentScaleSupport::ScaleFactor factor) override
|
||||
{
|
||||
#if ! JUCE_MAC
|
||||
// Cubase 10 doesn't support non-integer scale factors...
|
||||
if (getHostType().type == PluginHostType::SteinbergCubase10)
|
||||
auto hostType = getHostType().type;
|
||||
|
||||
if (hostType == PluginHostType::SteinbergCubase10 || hostType == PluginHostType::FruityLoops)
|
||||
{
|
||||
if (component.get() != nullptr)
|
||||
if (auto* peer = component->getPeer())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue