Skip to content
Permalink
Browse files

Tweaked the layout of MidiInputSelectorComponentListBox

  • Loading branch information...
tpoole committed Apr 24, 2018
1 parent 4597aa0 commit cbfcb53274352b56fe75f0fcca43460c17c49187
@@ -1662,7 +1662,9 @@ struct VST3ComponentHolder

void terminate()
{
if (isComponentInitialised) component->terminate();
if (isComponentInitialised)
component->terminate();

isComponentInitialised = false;
}

@@ -2773,11 +2775,22 @@ struct VST3PluginInstance : public AudioPluginInstance
/** @note An IPlugView, when first created, should start with a ref-count of 1! */
IPlugView* tryCreatingView() const
{
DBG ("tryCreatingView called");
std::cout << "AAAAAH" << std::endl;
std::cerr << "BBBBBH" << std::endl;

IPlugView* v = editController->createView (Vst::ViewType::kEditor);

DBG ("editController->createView (Vst::ViewType::kEditor) called");

if (v == nullptr) v = editController->createView (nullptr);

DBG ("editController->createView (nullptr) called");

if (v == nullptr) editController->queryInterface (IPlugView::iid, (void**) &v);

DBG ("editController->queryInterface (IPlugView::iid, (void**) &v) called");

return v;
}

@@ -116,7 +116,7 @@ class AudioDeviceSelectorComponent::MidiInputSelectorComponentListBox : public

g.setFont (height * 0.6f);
g.setColour (findColour (ListBox::textColourId, true).withMultipliedAlpha (enabled ? 1.0f : 0.6f));
g.drawText (item, x + 5, 0, width - x - 2, height, Justification::centredLeft, true);
g.drawText (item, x + 5, 0, width - x - 5, height, Justification::centredLeft, true);
}
}

0 comments on commit cbfcb53

Please sign in to comment.
You can’t perform that action at this time.