Browse files

The images are now properly scaled on Retina devices.

  • Loading branch information...
1 parent ccf2c92 commit 7a578e29bc82c47209808e230b720e695d363260 @hollance committed Aug 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Sources/RootViewController.m
View
2 Sources/RootViewController.m
@@ -170,7 +170,7 @@ - (UIImage*)postProcessLazyImage:(UIImage*)image forIndexPath:(NSIndexPath*)inde
if (image.size.width != kAppIconHeight && image.size.height != kAppIconHeight)
{
CGSize itemSize = CGSizeMake(kAppIconHeight, kAppIconHeight);
- UIGraphicsBeginImageContext(itemSize);
+ UIGraphicsBeginImageContextWithOptions(itemSize, YES, 0);
CGRect imageRect = CGRectMake(0.0, 0.0, itemSize.width, itemSize.height);
[image drawInRect:imageRect];
UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();

0 comments on commit 7a578e2

Please sign in to comment.