project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 4244 bf46b4bdf27d
parent 4115 222b8016c773
child 4287 7dbdc862097c
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Thu Nov 11 23:24:06 2010 +0100
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Fri Nov 12 00:11:22 2010 +0100
@@ -41,9 +41,20 @@
     self.selectedScheme = nil;
     self.selectedWeapon = nil;
 
-    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;
 }