mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Use proper endian ordering for bitmaps on OSX.
This commit is contained in:
parent
ea92e71747
commit
f5d623d820
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user