From a889149cbdef11844c94d8a875d4b6f203f0b3da Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 2 Dec 2024 17:45:31 +0000 Subject: [PATCH] PixelRGB: Fix pixel order issue when creating CGImages on iOS --- modules/juce_graphics/colour/juce_PixelFormats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_graphics/colour/juce_PixelFormats.h b/modules/juce_graphics/colour/juce_PixelFormats.h index 7a17a87aa5..cd5bc4d168 100644 --- a/modules/juce_graphics/colour/juce_PixelFormats.h +++ b/modules/juce_graphics/colour/juce_PixelFormats.h @@ -556,7 +556,7 @@ public: //============================================================================== /** The indexes of the different components in the byte layout of this type of colour. */ - #if JUCE_MAC + #if JUCE_MAC || JUCE_IOS enum { indexR = 0, indexG = 1, indexB = 2 }; #else enum { indexR = 2, indexG = 1, indexB = 0 }; @@ -578,7 +578,7 @@ private: } //============================================================================== - #if JUCE_MAC + #if JUCE_MAC || JUCE_IOS uint8 r, g, b; #else uint8 b, g, r;