(svn r6286) Nobody cares for the return value of GetAvailableVideoMode(), therefore remove it
This commit is contained in:
		@@ -129,20 +129,18 @@ static void GetVideoModes(void)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int GetAvailableVideoMode(int *w, int *h)
 | 
					static void GetAvailableVideoMode(int *w, int *h)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	int i;
 | 
						int i;
 | 
				
			||||||
	int best;
 | 
						int best;
 | 
				
			||||||
	uint delta;
 | 
						uint delta;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// all modes available?
 | 
						// all modes available?
 | 
				
			||||||
	if (_all_modes)
 | 
						if (_all_modes) return;
 | 
				
			||||||
		return 1;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// is the wanted mode among the available modes?
 | 
						// is the wanted mode among the available modes?
 | 
				
			||||||
	for (i = 0; i != _num_resolutions; i++) {
 | 
						for (i = 0; i != _num_resolutions; i++) {
 | 
				
			||||||
		if (*w == _resolutions[i][0] && *h == _resolutions[i][1])
 | 
							if (*w == _resolutions[i][0] && *h == _resolutions[i][1]) return;
 | 
				
			||||||
			return 1;
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// use the closest possible resolution
 | 
						// use the closest possible resolution
 | 
				
			||||||
@@ -157,7 +155,6 @@ static int GetAvailableVideoMode(int *w, int *h)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	*w = _resolutions[best][0];
 | 
						*w = _resolutions[best][0];
 | 
				
			||||||
	*h = _resolutions[best][1];
 | 
						*h = _resolutions[best][1];
 | 
				
			||||||
	return 2;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern const char _openttd_revision[];
 | 
					extern const char _openttd_revision[];
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user