apple bitmap info -> ignores alpha

This commit is contained in:
Paolo Marrone 2025-05-14 17:54:13 +02:00
parent ec0cb6b43c
commit 42bfebf35d

View File

@ -359,7 +359,7 @@ void window_draw(window *w, unsigned char *img, int32_t dx, int32_t dy, int32_t
); );
CGColorSpaceRef colorSpaceRef = CGColorSpaceCreateDeviceRGB(); CGColorSpaceRef colorSpaceRef = CGColorSpaceCreateDeviceRGB();
CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault; CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault | kCGImageAlphaNoneSkipLast;
CGColorRenderingIntent renderingIntent = kCGRenderingIntentDefault; CGColorRenderingIntent renderingIntent = kCGRenderingIntentDefault;
CGImageRef imageRef = CGImageCreate( CGImageRef imageRef = CGImageCreate(