| @@ -122,7 +122,7 @@ public: | |||||
| method called, so it should release any spare memory, etc. that it might have | method called, so it should release any spare memory, etc. that it might have | ||||
| allocated during the prepareToPlay() call. | allocated during the prepareToPlay() call. | ||||
| Note that there's no guarantee that prepareToPlay() will actually have been called before | |||||
| Note that there's no guarantee that prepareToPlay() will actually have been called before | |||||
| releaseResources(), and it may be called more than once in succession, so make sure your | releaseResources(), and it may be called more than once in succession, so make sure your | ||||
| code is robust and doesn't make any assumptions about when it will be called. | code is robust and doesn't make any assumptions about when it will be called. | ||||
| @@ -88,8 +88,8 @@ public: | |||||
| //============================================================================== | //============================================================================== | ||||
| /** Sets the filter up to act as a low-pass shelf filter with variable Q and gain. | /** Sets the filter up to act as a low-pass shelf filter with variable Q and gain. | ||||
| The gain is a scale factor that the low frequencies are multiplied by, so values | |||||
| greater than 1.0 will boost the low frequencies, values less than 1.0 will | |||||
| The gain is a scale factor that the low frequencies are multiplied by, so values | |||||
| greater than 1.0 will boost the low frequencies, values less than 1.0 will | |||||
| attenuate them. | attenuate them. | ||||
| */ | */ | ||||
| void makeLowShelf (const double sampleRate, | void makeLowShelf (const double sampleRate, | ||||
| @@ -99,8 +99,8 @@ public: | |||||
| /** Sets the filter up to act as a high-pass shelf filter with variable Q and gain. | /** Sets the filter up to act as a high-pass shelf filter with variable Q and gain. | ||||
| The gain is a scale factor that the high frequencies are multiplied by, so values | |||||
| greater than 1.0 will boost the high frequencies, values less than 1.0 will | |||||
| The gain is a scale factor that the high frequencies are multiplied by, so values | |||||
| greater than 1.0 will boost the high frequencies, values less than 1.0 will | |||||
| attenuate them. | attenuate them. | ||||
| */ | */ | ||||
| void makeHighShelf (const double sampleRate, | void makeHighShelf (const double sampleRate, | ||||
| @@ -111,8 +111,8 @@ public: | |||||
| /** Sets the filter up to act as a band pass filter centred around a | /** Sets the filter up to act as a band pass filter centred around a | ||||
| frequency, with a variable Q and gain. | frequency, with a variable Q and gain. | ||||
| The gain is a scale factor that the centre frequencies are multiplied by, so | |||||
| values greater than 1.0 will boost the centre frequencies, values less than | |||||
| The gain is a scale factor that the centre frequencies are multiplied by, so | |||||
| values greater than 1.0 will boost the centre frequencies, values less than | |||||
| 1.0 will attenuate them. | 1.0 will attenuate them. | ||||
| */ | */ | ||||
| void makeBandPass (const double sampleRate, | void makeBandPass (const double sampleRate, | ||||
| @@ -184,8 +184,10 @@ public: | |||||
| //============================================================================== | //============================================================================== | ||||
| /** Changes the current data model to display. */ | |||||
| void setModel (ListBoxModel* const newModel); | void setModel (ListBoxModel* const newModel); | ||||
| /** Returns the current list model. */ | |||||
| ListBoxModel* getModel() const throw() { return model; } | ListBoxModel* getModel() const throw() { return model; } | ||||
| @@ -1069,8 +1069,14 @@ void TextEditor::applyFontToAllText (const Font& newFont) | |||||
| { | { | ||||
| currentFont = newFont; | currentFont = newFont; | ||||
| const Colour overallColour (findColour (textColourId)); | |||||
| for (int i = sections.size(); --i >= 0;) | for (int i = sections.size(); --i >= 0;) | ||||
| ((UniformTextSection*) sections.getUnchecked(i))->setFont (newFont, passwordCharacter); | |||||
| { | |||||
| UniformTextSection* const uts = (UniformTextSection*) sections.getUnchecked(i); | |||||
| uts->setFont (newFont, passwordCharacter); | |||||
| uts->colour = overallColour; | |||||
| } | |||||
| coalesceSimilarSections(); | coalesceSimilarSections(); | ||||
| updateTextHolderSize(); | updateTextHolderSize(); | ||||
| @@ -1447,7 +1453,7 @@ void TextEditor::moveCursorTo (const int newPosition, | |||||
| jassert (selectionStart <= selectionEnd); | jassert (selectionStart <= selectionEnd); | ||||
| jassert (oldSelStart <= oldSelEnd); | jassert (oldSelStart <= oldSelEnd); | ||||
| repaintText (jmin (oldSelStart, selectionStart), | |||||
| repaintText (jmin (oldSelStart, selectionStart), | |||||
| jmax (oldSelEnd, selectionEnd)); | jmax (oldSelEnd, selectionEnd)); | ||||
| } | } | ||||
| else | else | ||||