mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Couple of minor warning fixes.
This commit is contained in:
parent
fe7d345060
commit
9aa02ce277
1 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ public:
|
|||
wavePath.startNewSubPath (0.0f, y);
|
||||
|
||||
for (int i = 1; i < pathWidth; ++i)
|
||||
wavePath.lineTo (i, (1 + waveValues[channel][i * numElementsInArray (waveValues[0]) / pathWidth]) * 10.0f);
|
||||
wavePath.lineTo ((float) i, (1.0f + waveValues[channel][i * numElementsInArray (waveValues[0]) / pathWidth]) * 10.0f);
|
||||
|
||||
g.strokePath (wavePath, PathStrokeType (1.0f),
|
||||
wavePath.getTransformToScaleToFit (Rectangle<float> (0.0f, y, (float) getWidth(), 20.0f), false));
|
||||
|
|
@ -198,7 +198,7 @@ public:
|
|||
return (float) indexValue;
|
||||
}
|
||||
|
||||
int amplitudeToY (float amp) const noexcept
|
||||
float amplitudeToY (float amp) const noexcept
|
||||
{
|
||||
return getHeight() - (amp + 1.0f) * getHeight() / 2.0f;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue