cocoaTouch/MapConfigViewController.m
changeset 3463 23c50be687a9
parent 3385 361bd29293f4
child 3487 b1d00f1950c8
--- a/cocoaTouch/MapConfigViewController.m	Sat May 15 09:21:25 2010 +0000
+++ b/cocoaTouch/MapConfigViewController.m	Sun May 16 17:23:30 2010 +0000
@@ -254,8 +254,9 @@
         // the % prevents a strange bug that occurs sporadically
         NSString *themeName = [self.themeArray objectAtIndex:row % [self.themeArray count]];
         cell.textLabel.text = themeName;
-        UIImage *image = [UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/Icon.png",THEMES_DIRECTORY(),themeName]];
-        cell.imageView.image = [image scaleToSize:CGSizeMake(40, 40)];
+        UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/Icon.png",THEMES_DIRECTORY(),themeName]];
+        cell.imageView.image = image;
+        [image release];
     } else {
         cell.textLabel.text = [self.mapArray objectAtIndex:row];
         cell.imageView.image = nil;