From fd00effb69a1ab838c0fa756a460332bfa63b8c2 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 13 Oct 2011 16:53:04 +0100 Subject: [PATCH] Fixed a mistake in the last check-in. --- .../juce_graphics/colour/juce_PixelFormats.h | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/modules/juce_graphics/colour/juce_PixelFormats.h b/modules/juce_graphics/colour/juce_PixelFormats.h index 2d36a6aa84..2326789a48 100644 --- a/modules/juce_graphics/colour/juce_PixelFormats.h +++ b/modules/juce_graphics/colour/juce_PixelFormats.h @@ -265,19 +265,18 @@ public: private: //============================================================================== + struct Components + { + #if JUCE_BIG_ENDIAN + uint8 a : 8, r : 8, g : 8, b : 8; + #else + uint8 b, g, r, a; + #endif + } PACKED; + union { uint32 argb; - - struct Components - { - #if JUCE_BIG_ENDIAN - uint8 a : 8, r : 8, g : 8, b : 8; - #else - uint8 b, g, r, a; - #endif - } PACKED; - Components components; }; }