Browse Source

Pixel blending improvement.

tags/2021-05-28
jules 12 years ago
parent
commit
e1f0baca43
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_graphics/colour/juce_PixelFormats.h

+ 1
- 1
modules/juce_graphics/colour/juce_PixelFormats.h View File

@@ -42,7 +42,7 @@ inline uint32 maskPixelComponents (uint32 x) noexcept
inline uint32 clampPixelComponents (uint32 x) noexcept
{
return (x & 0x00ff00ff) | (maskPixelComponents (x) * 0xff);
return (x | (0x01000100 - maskPixelComponents (x))) & 0x00ff00ff;
}
//==============================================================================


Loading…
Cancel
Save