1
0
Fork 0
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:
jules 2015-02-07 12:39:17 +00:00
parent fe7d345060
commit 9aa02ce277

View file

@ -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;
}