--- 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];