Browse Source

Tweaked the layout of MidiInputSelectorComponentListBox

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
cbfcb53274
2 changed files with 15 additions and 2 deletions
  1. +14
    -1
      modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp
  2. +1
    -1
      modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.cpp

+ 14
- 1
modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp View File

@@ -1662,7 +1662,9 @@ struct VST3ComponentHolder
void terminate()
{
if (isComponentInitialised) component->terminate();
if (isComponentInitialised)
component->terminate();
isComponentInitialised = false;
}
@@ -2773,11 +2775,22 @@ private:
/** @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;
}


+ 1
- 1
modules/juce_audio_utils/gui/juce_AudioDeviceSelectorComponent.cpp View File

@@ -116,7 +116,7 @@ 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);
}
}


Loading…
Cancel
Save