13
0

Fix mac VST2 plugin GUI (amend 9cbf3ae4ad)

This commit is contained in:
Robin Gareus 2022-04-19 22:38:46 +02:00
parent da41e4fce4
commit 273824d094
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ class MacVSTPluginUI;
class MacVSTPluginUI : public VSTPluginUI class MacVSTPluginUI : public VSTPluginUI
{ {
public: public:
MacVSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>, boost::shared_ptr<ARDOUR::VSTPlugin>); MacVSTPluginUI (boost::shared_ptr<ARDOUR::PlugInsertBase>, boost::shared_ptr<ARDOUR::VSTPlugin>);
~MacVSTPluginUI (); ~MacVSTPluginUI ();
bool start_updating (GdkEventAny*) { return false; } bool start_updating (GdkEventAny*) { return false; }

View File

@ -58,16 +58,16 @@ struct ERect{
@end @end
VSTPluginUI* VSTPluginUI*
create_mac_vst_gui (boost::shared_ptr<PluginInsert> insert) create_mac_vst_gui (boost::shared_ptr<PlugInsertBase> pib)
{ {
/* PluginUIWindow::create_mac_vst_editor assures this cast works */ /* PluginUIWindow::create_mac_vst_editor assures this cast works */
boost::shared_ptr<MacVSTPlugin> mvst = boost::dynamic_pointer_cast<MacVSTPlugin> (insert->plugin()); boost::shared_ptr<MacVSTPlugin> mvst = boost::dynamic_pointer_cast<MacVSTPlugin> (pib->plugin());
return new MacVSTPluginUI (insert, mvst); return new MacVSTPluginUI (pib, mvst);
} }
MacVSTPluginUI::MacVSTPluginUI (boost::shared_ptr<PluginInsert> pi, boost::shared_ptr<VSTPlugin> vst) MacVSTPluginUI::MacVSTPluginUI (boost::shared_ptr<PlugInsertBase> pib, boost::shared_ptr<VSTPlugin> vst)
: VSTPluginUI (pi, vst) : VSTPluginUI (pib, vst)
, _ns_view (0) , _ns_view (0)
{ {
low_box.add_events (Gdk::VISIBILITY_NOTIFY_MASK | Gdk::EXPOSURE_MASK); low_box.add_events (Gdk::VISIBILITY_NOTIFY_MASK | Gdk::EXPOSURE_MASK);