Le fixage.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5169 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
c5ca2ea61a
commit
1f3394cdf3
@ -6129,13 +6129,6 @@ static GLfloat sBaseMass = 0.0;
|
||||
|
||||
#if OO_RESOLUTION_OPTION
|
||||
GameController *controller = [UNIVERSE gameController];
|
||||
NSArray *modeList = [controller displayModes];
|
||||
NSDictionary *mode = nil;
|
||||
if ([modeList count])
|
||||
{
|
||||
mode = [modeList objectAtIndex:displayModeIndex];
|
||||
}
|
||||
if (mode == nil) return; // Got a better idea?
|
||||
|
||||
OOUInteger displayModeIndex = [controller indexOfCurrentDisplayMode];
|
||||
if (displayModeIndex == NSNotFound)
|
||||
@ -6144,6 +6137,14 @@ static GLfloat sBaseMass = 0.0;
|
||||
displayModeIndex = 0;
|
||||
}
|
||||
|
||||
NSArray *modeList = [controller displayModes];
|
||||
NSDictionary *mode = nil;
|
||||
if ([modeList count])
|
||||
{
|
||||
mode = [modeList objectAtIndex:displayModeIndex];
|
||||
}
|
||||
if (mode == nil) return; // Got a better idea?
|
||||
|
||||
int modeWidth = [[mode objectForKey:kOODisplayWidth] intValue];
|
||||
int modeHeight = [[mode objectForKey:kOODisplayHeight] intValue];
|
||||
float modeRefresh = [mode oo_floatForKey:kOODisplayRefreshRate];
|
||||
|
Loading…
x
Reference in New Issue
Block a user