From f5d623d820c35c8843afd15f36f18beb44209720 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 4 Nov 2015 12:31:12 +1100 Subject: [PATCH] Use proper endian ordering for bitmaps on OSX. --- Launcher2/Gui/PlatformDrawer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Launcher2/Gui/PlatformDrawer.cs b/Launcher2/Gui/PlatformDrawer.cs index 778cd7df1..a619e7de5 100644 --- a/Launcher2/Gui/PlatformDrawer.cs +++ b/Launcher2/Gui/PlatformDrawer.cs @@ -57,7 +57,7 @@ namespace Launcher2 { IntPtr colorSpace = OSX.API.CGColorSpaceCreateDeviceRGB(); IntPtr provider = OSX.API.CGDataProviderCreateWithData( IntPtr.Zero, scan0, size, IntPtr.Zero ); - const uint flags = 4 | (4 << 12); + const uint flags = 4 | (2 << 12); IntPtr image = OSX.API.CGImageCreate( bmp.Width, bmp.Height, 8, 8 * 4, bmp.Stride, colorSpace, flags, provider, IntPtr.Zero, 0, 0 ); IntPtr context = IntPtr.Zero;