VST3 resize quirks (Reason, macOS)

This commit is contained in:
Robin Gareus 2020-11-20 00:05:34 +01:00
parent 1effa1d888
commit 62a62eaeb3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 8 additions and 1 deletions

View File

@ -132,7 +132,14 @@ VST3NSViewPluginUI::view_size_allocate (Gtk::Allocation& allocation)
allocation.set_width (rect.right - rect.left);
allocation.set_height (rect.bottom - rect.top);
#endif
if (view->canResize() == kResultTrue) {
bool can_resize = true;
#if 1 // quirks
/* Reason reports canResize() == kResultTrue, but crashes in onSize()
* reported to reasonstudios.com on 2020-11-19 */
if (_vst3->unique_id() == "D75F65D1581F203A8D793B3C01583323" /* Reason Rack Plugin */) can_resize = false;
if (_vst3->unique_id() == "C64E2730B0614A6EAEFC432F9CF6151A" /* Reason Rack Plugin Effect */) can_resize = false;
#endif
if (can_resize && view->canResize() == kResultTrue) {
view->onSize (&rect);
}
}