Fix mac VST2 plugin GUI (amend 9cbf3ae4ad
)
This commit is contained in:
parent
da41e4fce4
commit
273824d094
@ -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; }
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user