mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 02:25:32 -04:00
Fix last two commits causing 32 bit mac build to draw launcher window blue
This commit is contained in:
parent
55ca8b7a91
commit
cb908ad026
@ -2259,8 +2259,13 @@ void Window_DrawFramebuffer(Rect2D r) {
|
|||||||
|
|
||||||
provider = CGDataProviderCreateWithData(NULL, fb_bmp.Scan0,
|
provider = CGDataProviderCreateWithData(NULL, fb_bmp.Scan0,
|
||||||
Bitmap_DataSize(fb_bmp.Width, fb_bmp.Height), NULL);
|
Bitmap_DataSize(fb_bmp.Width, fb_bmp.Height), NULL);
|
||||||
|
#ifdef CC_BIG_ENDIAN
|
||||||
image = CGImageCreate(fb_bmp.Width, fb_bmp.Height, 8, 32, fb_bmp.Width * 4, colorSpace,
|
image = CGImageCreate(fb_bmp.Width, fb_bmp.Height, 8, 32, fb_bmp.Width * 4, colorSpace,
|
||||||
kCGImageAlphaNoneSkipFirst, provider, NULL, 0, 0);
|
kCGImageAlphaNoneSkipFirst, provider, NULL, 0, 0);
|
||||||
|
#else
|
||||||
|
image = CGImageCreate(fb_bmp.Width, fb_bmp.Height, 8, 32, fb_bmp.Width * 4, colorSpace,
|
||||||
|
kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst, provider, NULL, 0, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
CGContextDrawImage(context, rect, image);
|
CGContextDrawImage(context, rect, image);
|
||||||
CGContextSynchronize(context);
|
CGContextSynchronize(context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user