project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
changeset 6083 72c882c0fd0f
parent 6078 8c0cc07731e5
child 6266 b02a1e92dba2
--- a/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Tue Oct 04 17:13:39 2011 -0400
+++ b/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Wed Oct 05 00:18:54 2011 +0200
@@ -44,11 +44,7 @@
     if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
         self.tableView.backgroundView = nil;
 
-    NSString *imgName;
-    if (IS_IPAD())
-        imgName = @"mediumBackground~ipad.png";
-    else
-        imgName = @"smallerBackground~iphone.png";
+    NSString *imgName = (IS_IPAD()) ? @"mediumBackground~ipad.png" : @"smallerBackground~iphone.png";
     UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
     self.view.backgroundColor = [UIColor colorWithPatternImage:img];
     [img release];