From a4aa6e4a437059d76a2ae36de212ee680f47a4a4 Mon Sep 17 00:00:00 2001 From: jules Date: Sat, 12 Jul 2008 13:55:12 +0000 Subject: [PATCH] --- .../juce_AudioDeviceSelectorComponent.cpp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/juce_appframework/gui/components/special/juce_AudioDeviceSelectorComponent.cpp b/src/juce_appframework/gui/components/special/juce_AudioDeviceSelectorComponent.cpp index a65c3855d8..c397635f1a 100644 --- a/src/juce_appframework/gui/components/special/juce_AudioDeviceSelectorComponent.cpp +++ b/src/juce_appframework/gui/components/special/juce_AudioDeviceSelectorComponent.cpp @@ -496,8 +496,7 @@ public: outputChanLabel->attachToComponent (outputChanList, true); } - outputChanList->updateContent(); - outputChanList->repaint(); + outputChanList->refresh(); } else { @@ -517,8 +516,7 @@ public: inputChanLabel->attachToComponent (inputChanList, true); } - inputChanList->updateContent(); - inputChanList->repaint(); + inputChanList->refresh(); } else { @@ -1032,19 +1030,10 @@ void AudioDeviceSelectorComponent::resized() y += audioDeviceSettingsComp->getHeight() + space; } - VoidArray boxes; - if (midiInputsList != 0) - boxes.add (midiInputsList); - - const int boxSpace = getHeight() - y; - - for (int i = 0; i < boxes.size(); ++i) { - MidiInputSelectorComponentListBox* const box = (MidiInputSelectorComponentListBox*) boxes.getUnchecked (i); - - const int bh = box->getBestHeight (jmin (h * 8, boxSpace / boxes.size()) - space); - box->setBounds (lx, y, w, bh); + const int bh = midiInputsList->getBestHeight (jmin (h * 8, getHeight() - y - space)); + midiInputsList->setBounds (lx, y, w, bh); y += bh + space; }