diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-25 20:29:28 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-26 19:02:10 +0200 |
commit | 6d7d274151d18be9c806f72ac3ce10638e483bea (patch) | |
tree | fb250fe9baa245467fd31c0878a68056a76d73ba /ios | |
parent | Introduce temporary lo_set_view_size() hack like on Android and call it (diff) | |
download | core-6d7d274151d18be9c806f72ac3ce10638e483bea.tar.gz core-6d7d274151d18be9c806f72ac3ce10638e483bea.zip |
I think kCGImageAlphaNoneSkipLast is what we want
Change-Id: I19a5ab15650cef4ee834af63e19bea7807b77477
Diffstat (limited to 'ios')
-rw-r--r-- | ios/experimental/Viewer/Viewer/LOViewerAppDelegate.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/experimental/Viewer/Viewer/LOViewerAppDelegate.mm b/ios/experimental/Viewer/Viewer/LOViewerAppDelegate.mm index 9f72b3543626..7e7216ff63b3 100644 --- a/ios/experimental/Viewer/Viewer/LOViewerAppDelegate.mm +++ b/ios/experimental/Viewer/Viewer/LOViewerAppDelegate.mm @@ -39,7 +39,7 @@ static UIWindow *theWindow; memset(pixelBuffer, 0xFF, nbytes); CGDataProviderRef provider = CGDataProviderCreateWithData( NULL, pixelBuffer, nbytes, NULL); - image = CGImageCreate(bounds.size.width, bounds.size.height, 8, 32, bounds.size.width*4, CGColorSpaceCreateDeviceRGB(), kCGImageAlphaFirst, provider, NULL, false, kCGRenderingIntentDefault); + image = CGImageCreate(bounds.size.width, bounds.size.height, 8, 32, bounds.size.width*4, CGColorSpaceCreateDeviceRGB(), kCGImageAlphaNoneSkipLast, provider, NULL, false, kCGRenderingIntentDefault); self.window.bounds = bounds; self.window.pixelBuffer = pixelBuffer; |