mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-01 19:32:46 +02:00
Merge pull request #711 from MaddTheSane/patch-2
Update GBViewController.m
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user