(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:
darkvater
2004-09-23 21:14:20 +00:00
parent d72abf6c3e
commit f3758d133a
4 changed files with 45 additions and 35 deletions

View File

@@ -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;
}