Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
7dc5e33d52
4 changed files with 17 additions and 9 deletions
  1. +1
    -1
      src/juce_appframework/audio/audio_sources/juce_AudioSource.h
  2. +6
    -6
      src/juce_appframework/audio/dsp/juce_IIRFilter.h
  3. +2
    -0
      src/juce_appframework/gui/components/controls/juce_ListBox.h
  4. +8
    -2
      src/juce_appframework/gui/components/controls/juce_TextEditor.cpp

+ 1
- 1
src/juce_appframework/audio/audio_sources/juce_AudioSource.h View File

@@ -122,7 +122,7 @@ public:
method called, so it should release any spare memory, etc. that it might have
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
code is robust and doesn't make any assumptions about when it will be called.


+ 6
- 6
src/juce_appframework/audio/dsp/juce_IIRFilter.h View File

@@ -88,8 +88,8 @@ public:
//==============================================================================
/** 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.
*/
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.
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.
*/
void makeHighShelf (const double sampleRate,
@@ -111,8 +111,8 @@ public:
/** Sets the filter up to act as a band pass filter centred around a
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.
*/
void makeBandPass (const double sampleRate,


+ 2
- 0
src/juce_appframework/gui/components/controls/juce_ListBox.h View File

@@ -184,8 +184,10 @@ public:
//==============================================================================
/** Changes the current data model to display. */
void setModel (ListBoxModel* const newModel);
/** Returns the current list model. */
ListBoxModel* getModel() const throw() { return model; }


+ 8
- 2
src/juce_appframework/gui/components/controls/juce_TextEditor.cpp View File

@@ -1069,8 +1069,14 @@ void TextEditor::applyFontToAllText (const Font& newFont)
{
currentFont = newFont;
const Colour overallColour (findColour (textColourId));
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();
updateTextHolderSize();
@@ -1447,7 +1453,7 @@ void TextEditor::moveCursorTo (const int newPosition,
jassert (selectionStart <= selectionEnd);
jassert (oldSelStart <= oldSelEnd);
repaintText (jmin (oldSelStart, selectionStart),
repaintText (jmin (oldSelStart, selectionStart),
jmax (oldSelEnd, selectionEnd));
}
else


Loading…
Cancel
Save