project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
changeset 4244 bf46b4bdf27d
parent 4115 222b8016c773
child 4284 57a501a69e5f
--- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Thu Nov 11 23:24:06 2010 +0100
+++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Fri Nov 12 00:11:22 2010 +0100
@@ -39,9 +39,20 @@
     CGSize screenSize = [[UIScreen mainScreen] bounds].size;
     self.view.frame = CGRectMake(0, 0, screenSize.height, screenSize.width - 44);
 
-    if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
-        [self.tableView setBackgroundView:nil];
-    self.view.backgroundColor = [UIColor clearColor];
+    if ([self.tableView respondsToSelector:@selector(setBackgroundView:)]) {
+        if (IS_IPAD())
+            [self.tableView setBackgroundView:nil];
+        else {
+            UIImage *backgroundImage = [[UIImage alloc] initWithContentsOfFile:@"backgroundCenter.png"];
+            UIImageView *background = [[UIImageView alloc] initWithImage:backgroundImage];
+            [backgroundImage release];
+            [self.tableView setBackgroundView:background];
+            [background release];
+        }
+    } else {
+        self.view.backgroundColor = [UIColor blackColor];
+    }
+
     self.tableView.separatorColor = UICOLOR_HW_YELLOW_BODER;
     self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
 }