We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b5b7bb commit 11d7752Copy full SHA for 11d7752
2 files changed
docs/notes/bugfix-15870.md
@@ -0,0 +1,2 @@
1
+# HTML5: embedded images are colour-swapped
2
+
libgraphics/include/graphics.h
@@ -48,7 +48,7 @@ typedef struct __MCGRegion *MCGRegionRef;
48
typedef uint32_t MCGPixelFormat;
49
50
// IM_2013-08-21: [[ RefactorGraphics ]] set iOS pixel format to RGBA
51
-#if defined(ANDROID) || defined(TARGET_SUBPLATFORM_IPHONE) || defined(_LINUX)
+#if defined(ANDROID) || defined(TARGET_SUBPLATFORM_IPHONE) || defined(_LINUX) || defined(__EMSCRIPTEN__)
52
#define kMCGPixelFormatNative kMCGPixelFormatRGBA
53
// IM-2013-11-01: [[ Bug 11198 ]] Set PPC pixel format to ARGB
54
#elif defined(__ppc__)
0 commit comments