project_files/HedgewarsMobile/Classes/SavedGamesViewController.m
branchhedgeroid
changeset 6224 42b256eca362
parent 6083 72c882c0fd0f
child 6266 b02a1e92dba2
--- a/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Fri Oct 28 17:41:39 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/SavedGamesViewController.m	Fri Oct 28 18:26:17 2011 +0200
@@ -21,7 +21,7 @@
 
 #import "SavedGamesViewController.h"
 #import "GameInterfaceBridge.h"
-#import "CommodityFunctions.h"
+
 
 @implementation SavedGamesViewController
 @synthesize tableView, listOfSavegames, interfaceBridge, numberOfItems;
@@ -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];