diff -r bdace1e2f8aa -r 2f4f5d649bcd project_files/HedgewarsMobile/Classes/UIImageExtra.m --- a/project_files/HedgewarsMobile/Classes/UIImageExtra.m Sun Dec 05 00:05:21 2010 +0100 +++ b/project_files/HedgewarsMobile/Classes/UIImageExtra.m Sun Dec 05 02:44:20 2010 +0100 @@ -219,7 +219,12 @@ CGContextRelease(context); CGColorSpaceRelease(colorSpace); - UIImage *newImage = [UIImage imageWithCGImage:imageMasked scale:theScale orientation:UIImageOrientationUp]; + UIImage *newImage; + if ([self respondsToSelector:@selector(imageWithCGImage:scale:orientation:)]) + newImage = [UIImage imageWithCGImage:imageMasked scale:theScale orientation:UIImageOrientationUp]; + else + newImage = [UIImage imageWithCGImage:imageMasked]; + CGImageRelease(imageMasked); return newImage;