This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
VST2 & VST3: Plug-Ins will already be scaled on retina screens - don't try scaling them again
tags/2021-05-28
hogliux
7 years ago
parent
61321d2eb9
commit
c0f69183e7
2 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
+4
-0
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp
+ 3
- 0
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
View File
@@ -1049,7 +1049,10 @@ public:
{
vstEffect.flags |= vstEffectFlagHasEditor;
editorComp = new EditorCompWrapper (*this, *ed);
#if ! (JUCE_MAC || JUCE_IOS)
ed->setScaleFactor (editorScaleFactor);
#endif
}
else
{
+ 4
- 0
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp
View File
@@ -866,11 +866,15 @@ private:
tresult PLUGIN_API setContentScaleFactor (Steinberg::IPlugViewContentScaleSupport::ScaleFactor factor) override
{
#if (JUCE_MAC || JUCE_IOS)
ignoreUnused (factor);
#else
if (auto* editor = component->pluginEditor.get())
{
editor->setScaleFactor (factor);
return kResultTrue;
}
#endif
return kResultFalse;
}
Write
Preview
Loading…
Cancel
Save