project_files/HedgewarsMobile/Classes/MissionTrainingViewController.m
changeset 6100 e6426c6b2882
parent 6094 16b12a6417d1
child 6210 923c8414e3af
--- a/project_files/HedgewarsMobile/Classes/MissionTrainingViewController.m	Sat Oct 08 02:05:22 2011 -0400
+++ b/project_files/HedgewarsMobile/Classes/MissionTrainingViewController.m	Sat Oct 08 13:39:40 2011 +0200
@@ -157,7 +157,8 @@
     NSInteger row = [indexPath row];
 
     self.missionName = [[self.listOfMissions objectAtIndex:row] stringByDeletingPathExtension];
-    NSString *filePath = [[NSString alloc] initWithFormat:@"%@/Missions/Training/%@@2x.png",GRAPHICS_DIRECTORY(),self.missionName];
+    NSString *size = IS_IPAD() ? @"@2x" : @"";
+    NSString *filePath = [[NSString alloc] initWithFormat:@"%@/Missions/Training/%@%@.png",GRAPHICS_DIRECTORY(),self.missionName,size];
     UIImage *img = [[UIImage alloc] initWithContentsOfFile:filePath];
     [filePath release];
     [self.previewImage setImage:img];