project_files/HedgewarsMobile/Classes/InGameMenuViewController.m
changeset 5483 fc755bb8096d
parent 5208 878e551f0b4a
child 5662 99083392cd4f
equal deleted inserted replaced
5482:c047e70c53f4 5483:fc755bb8096d
   255         image = [[UIImage alloc] initWithCGImage:imageRef scale:1 orientation:UIImageOrientationRight];
   255         image = [[UIImage alloc] initWithCGImage:imageRef scale:1 orientation:UIImageOrientationRight];
   256     else
   256     else
   257         image = [[UIImage alloc] initWithCGImage:imageRef];
   257         image = [[UIImage alloc] initWithCGImage:imageRef];
   258     CGImageRelease(imageRef);
   258     CGImageRelease(imageRef);
   259 
   259 
   260     UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), (void *)alert); // add callback for finish saving
   260     // add callback for cleaning memory and removing alert
       
   261     UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), (void *)alert);
   261 }
   262 }
   262 
   263 
   263 
   264 
   264 @end
   265 @end