1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Purged some warnings.

This commit is contained in:
jules 2012-04-10 10:29:14 +01:00
parent 991388d2c3
commit 1f95f54089
79 changed files with 380 additions and 352 deletions

View file

@ -25,14 +25,14 @@
namespace ColourHelpers
{
uint8 floatToUInt8 (const float n) noexcept
static uint8 floatToUInt8 (const float n) noexcept
{
return n <= 0.0f ? 0 : (n >= 1.0f ? 255 : (uint8) (n * 255.0f));
}
// This is an adjusted brightness value, based on the way the human
// eye responds to different colour channels..
float getPerceivedBrightness (float r, float g, float b) noexcept
static float getPerceivedBrightness (float r, float g, float b) noexcept
{
return std::sqrt (r * r * 0.241f
+ g * g * 0.691f

View file

@ -168,7 +168,7 @@ void ColourGradient::createLookupTable (PixelARGB* const lookupTable, const int
jassert (index >= 0 && index < numEntries);
lookupTable[index] = pix1;
lookupTable[index].tween (pix2, (uint32) (i << 8) / numToDo);
lookupTable[index].tween (pix2, (uint32) ((i << 8) / numToDo));
++index;
}