1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

PixelRGB: Fix pixel order issue when creating CGImages on iOS

This commit is contained in:
reuk 2024-12-02 17:45:31 +00:00
parent 0e12c2da92
commit a889149cbd
No known key found for this signature in database

View file

@ -556,7 +556,7 @@ public:
//============================================================================== //==============================================================================
/** The indexes of the different components in the byte layout of this type of colour. */ /** 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 }; enum { indexR = 0, indexG = 1, indexB = 2 };
#else #else
enum { indexR = 2, indexG = 1, indexB = 0 }; enum { indexR = 2, indexG = 1, indexB = 0 };
@ -578,7 +578,7 @@ private:
} }
//============================================================================== //==============================================================================
#if JUCE_MAC #if JUCE_MAC || JUCE_IOS
uint8 r, g, b; uint8 r, g, b;
#else #else
uint8 b, g, r; uint8 b, g, r;