summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuPageViewNormal.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/Classes/MuPageViewNormal.m')
-rw-r--r--platform/ios/Classes/MuPageViewNormal.m9
1 files changed, 2 insertions, 7 deletions
diff --git a/platform/ios/Classes/MuPageViewNormal.m b/platform/ios/Classes/MuPageViewNormal.m
index c2f609c9..d240592d 100644
--- a/platform/ios/Classes/MuPageViewNormal.m
+++ b/platform/ios/Classes/MuPageViewNormal.m
@@ -43,13 +43,8 @@ static UIImage *newImageWithPixmap(fz_pixmap *pix, CGDataProviderRef cgdata)
int w = fz_pixmap_width(ctx, pix);
int h = fz_pixmap_height(ctx, pix);
CGColorSpaceRef cgcolor = CGColorSpaceCreateDeviceRGB();
- CGImageRef cgimage = CGImageCreate(w, h, 8, 32, 4 * w,
- cgcolor, kCGBitmapByteOrderDefault,
- cgdata, NULL, NO, kCGRenderingIntentDefault);
- UIImage *image = [[UIImage alloc]
- initWithCGImage: cgimage
- scale: screenScale
- orientation: UIImageOrientationUp];
+ CGImageRef cgimage = CGImageCreate(w, h, 8, 32, 4 * w, cgcolor, kCGBitmapByteOrderDefault, cgdata, NULL, NO, kCGRenderingIntentDefault);
+ UIImage *image = [[UIImage alloc] initWithCGImage: cgimage scale: screenScale orientation: UIImageOrientationUp];
CGColorSpaceRelease(cgcolor);
CGImageRelease(cgimage);
return image;