(svn r312) -Fix: [926105] ctrl + d bug. Longest outstanding bug has been fixed \o/ 2004-03-30 (Tron)
-Fix: [1030393] some screensizes crashes OTTD. Fix in general bug that only allows resolutions which were multiple of 8 in width and height. Also use closest possible resolution in fullscreen if window size is not a valid resolution (Tron)
This commit is contained in:
@@ -53,8 +53,9 @@ static StringID *BuildDynamicDropdown(StringID base, int num)
|
||||
static int GetCurRes()
|
||||
{
|
||||
int i;
|
||||
for(i=0; i!=_num_resolutions; i++)
|
||||
if (_resolutions[i][0] == _cur_resolution[0] && _resolutions[i][1] == _cur_resolution[1])
|
||||
for(i = 0; i != _num_resolutions; i++)
|
||||
if (_resolutions[i][0] == _screen.width &&
|
||||
_resolutions[i][1] == _screen.height)
|
||||
break;
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user