Lines 110-119
Link Here
|
110 |
|
110 |
|
111 |
#if JUCE_GCC && ! JUCE_CLANG |
111 |
#if JUCE_GCC && ! JUCE_CLANG |
112 |
// NB these are here as a workaround because GCC refuses to bind to packed values. |
112 |
// NB these are here as a workaround because GCC refuses to bind to packed values. |
113 |
forcedinline uint8& getAlpha() noexcept { return comps [indexA]; } |
113 |
forcedinline uint8& getAlpha() noexcept { return (uint8 &) comps [indexA]; } |
114 |
forcedinline uint8& getRed() noexcept { return comps [indexR]; } |
114 |
forcedinline uint8& getRed() noexcept { return (uint8 &) comps [indexR]; } |
115 |
forcedinline uint8& getGreen() noexcept { return comps [indexG]; } |
115 |
forcedinline uint8& getGreen() noexcept { return (uint8 &) comps [indexG]; } |
116 |
forcedinline uint8& getBlue() noexcept { return comps [indexB]; } |
116 |
forcedinline uint8& getBlue() noexcept { return (uint8 &) comps [indexB]; } |
117 |
#else |
117 |
#else |
118 |
forcedinline uint8& getAlpha() noexcept { return components.a; } |
118 |
forcedinline uint8& getAlpha() noexcept { return components.a; } |
119 |
forcedinline uint8& getRed() noexcept { return components.r; } |
119 |
forcedinline uint8& getRed() noexcept { return components.r; } |