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:
parent
991388d2c3
commit
1f95f54089
79 changed files with 380 additions and 352 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue