Fix last two commits causing 32 bit mac build to draw launcher window blue

This commit is contained in:
UnknownShadow200 2019-11-21 12:30:46 +11:00
parent 55ca8b7a91
commit cb908ad026

View File

@ -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);