1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00
This commit is contained in:
jules 2007-11-20 09:36:49 +00:00
parent 69501da32d
commit 24cd229ec7
2 changed files with 4 additions and 1 deletions

View file

@ -131,6 +131,7 @@ void AudioProcessor::beginParameterChangeGesture (int parameterIndex)
// This means you've called beginParameterChangeGesture twice in succession without a matching
// call to endParameterChangeGesture. That might be fine in most hosts, but better to avoid doing it.
jassert (! changingParams [parameterIndex]);
changingParams.setBit (parameterIndex);
#endif
for (int i = listeners.size(); --i >= 0;)
@ -153,6 +154,7 @@ void AudioProcessor::endParameterChangeGesture (int parameterIndex)
// endParameterChangeGesture. That might be fine in most hosts, but better to keep the
// calls matched correctly.
jassert (changingParams [parameterIndex]);
changingParams.clearBit (parameterIndex);
#endif
for (int i = listeners.size(); --i >= 0;)

View file

@ -699,7 +699,8 @@ void MidiKeyboardComponent::resetAnyKeysInUse()
void MidiKeyboardComponent::updateNoteUnderMouse (int x, int y)
{
const int newNote = (mouseDragging || isMouseOver()) ? xyToNote (x, y) : -1;
const int newNote = (mouseDragging || isMouseOver())
? xyToNote (x, y) : -1;
if (noteUnderMouse != newNote)
{