Merge pull request #711 from MaddTheSane/patch-2

Update GBViewController.m
This commit is contained in:
Lior Halphon
2025-07-08 00:06:08 +03:00
committed by GitHub

View File

@@ -1390,7 +1390,7 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
- (UIImage *)imageFromData:(NSData *)data width:(unsigned)width height:(unsigned)height
{
/* Convert the screenshot to a CGImageRef */
CGDataProviderRef provider = CGDataProviderCreateWithData(NULL, data.bytes, data.length, NULL);
CGDataProviderRef provider = CGDataProviderCreateWithCFData((CFDataRef)data);
CGColorSpaceRef colorSpaceRef = CGColorSpaceCreateDeviceRGB();
CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault | kCGImageAlphaNoneSkipLast;
CGColorRenderingIntent renderingIntent = kCGRenderingIntentDefault;