project_files/HedgewarsMobile/Classes/AboutViewController.m
changeset 4030 adbb37b8c487
parent 4000 ddc4a09889e7
child 4082 bfe14b38dad1
--- a/project_files/HedgewarsMobile/Classes/AboutViewController.m	Sun Oct 31 01:49:20 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/AboutViewController.m	Sun Oct 31 04:01:31 2010 +0100
@@ -37,7 +37,15 @@
     NSArray *array = [[NSArray alloc] initWithContentsOfFile:strPath];
     self.people = array;
     [array release];
-    
+
+    NSString *imgName;
+    if (IS_IPAD())
+        imgName = @"smallerBackground~ipad.png";
+    else
+        imgName = @"smallerBackground~iphone.png";
+    UIImage *img = [[UIImage alloc] initWithContentsOfFile:imgName];
+    self.view.backgroundColor = [UIColor colorWithPatternImage:img];
+    [img release];
     [super viewDidLoad];
 }