project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 4244 bf46b4bdf27d
parent 4115 222b8016c773
child 4287 7dbdc862097c
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Thu Nov 11 23:24:06 2010 +0100
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Fri Nov 12 00:11:22 2010 +0100
@@ -127,9 +127,6 @@
     if (cell == nil)
         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
 
-    if (IS_IPAD())
-        cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
-
     if (self.dataSourceArray == nil)
         [self loadDataSourceArray];
     NSArray *source = [self.dataSourceArray objectAtIndex:scIndex];
@@ -138,6 +135,7 @@
     cell.textLabel.text = labelString;
     cell.textLabel.adjustsFontSizeToFitWidth = YES;
     cell.textLabel.minimumFontSize = 7;
+    cell.textLabel.textColor = UICOLOR_HW_YELLOW_TEXT;
 
     if (isRandomness()) {
         UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),labelString]];
@@ -353,6 +351,7 @@
     self.missionCommand = mission;
 
     // nice animation for updating the table when appropriate (on iphone)
+    /*
     if (IS_IPAD() == NO)
         if (((oldPage == 0 || oldPage == 2) && (newPage == 1 || newPage == 3)) ||
             ((oldPage == 1 || oldPage == 3) && (newPage == 0 || newPage == 2)) ||
@@ -362,6 +361,7 @@
             self.tableView.frame = CGRectMake(295, 0, 185, 276);
             [UIView commitAnimations];
         }
+    */
 
     [self.tableView reloadData];
     [self updatePreview];
@@ -424,14 +424,11 @@
     self.staticMapCommand = @"";
     self.missionCommand = @"";
 
-    if (IS_IPAD()) {
-        if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
-            [self.tableView setBackgroundView:nil];
-        self.view.backgroundColor = [UIColor clearColor];
-        self.tableView.separatorColor = UICOLOR_HW_YELLOW_BODER;
-        self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
-        self.tableView.rowHeight = 45;
-    }
+    if ([self.tableView respondsToSelector:@selector(setBackgroundView:)])
+        [self.tableView setBackgroundView:nil];
+    self.view.backgroundColor = [UIColor clearColor];
+    self.tableView.separatorColor = UICOLOR_HW_YELLOW_BODER;
+    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
 }
 
 -(void) viewWillAppear:(BOOL)animated {