Browse Source

Do not set scale factor for vst2 native implementation under macOS

tags/v2.4.1
falkTX 3 years ago
parent
commit
d2f5406f56
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      source/backend/plugin/CarlaPluginVST2.cpp

+ 4
- 0
source/backend/plugin/CarlaPluginVST2.cpp View File

@@ -569,12 +569,14 @@ public:
value = (intptr_t)fUI.window->getDisplay(); value = (intptr_t)fUI.window->getDisplay();
#endif #endif


#ifndef CARLA_OS_MAC
// inform plugin of what UI scale we use // inform plugin of what UI scale we use
dispatcher(effVendorSpecific, dispatcher(effVendorSpecific,
CCONST('P', 'r', 'e', 'S'), CCONST('P', 'r', 'e', 'S'),
CCONST('A', 'e', 'C', 's'), CCONST('A', 'e', 'C', 's'),
nullptr, nullptr,
opts.uiScale); opts.uiScale);
#endif


// NOTE: there are far too many broken VST2 plugins, don't bother checking return value // NOTE: there are far too many broken VST2 plugins, don't bother checking return value
if (dispatcher(effEditOpen, 0, value, fUI.window->getPtr()) != 0 || true) if (dispatcher(effEditOpen, 0, value, fUI.window->getPtr()) != 0 || true)
@@ -632,12 +634,14 @@ public:
fUI.isOpen = true; fUI.isOpen = true;
fUI.isVisible = true; fUI.isVisible = true;


#ifndef CARLA_OS_MAC
// inform plugin of what UI scale we use // inform plugin of what UI scale we use
dispatcher(effVendorSpecific, dispatcher(effVendorSpecific,
CCONST('P', 'r', 'e', 'S'), CCONST('P', 'r', 'e', 'S'),
CCONST('A', 'e', 'C', 's'), CCONST('A', 'e', 'C', 's'),
nullptr, nullptr,
opts.uiScale); opts.uiScale);
#endif


dispatcher(effEditOpen, 0, 0, ptr); dispatcher(effEditOpen, 0, 0, ptr);




Loading…
Cancel
Save