diff options
author | tron <tron@openttd.org> | 2006-08-31 20:06:31 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-31 20:06:31 +0000 |
commit | 17c101afe3f57eb959a72becef0e5d04e63ebbcb (patch) | |
tree | 88c556fc8a30ee3d2b82ebe111291ce5b47e7492 /video | |
parent | 0574bcb46d2379afc9429318db0814fbae101feb (diff) | |
download | openttd-17c101afe3f57eb959a72becef0e5d04e63ebbcb.tar.xz |
(svn r6286) Nobody cares for the return value of GetAvailableVideoMode(), therefore remove it
Diffstat (limited to 'video')
-rw-r--r-- | video/sdl_v.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c index 6e88a5317..da11fc95d 100644 --- a/video/sdl_v.c +++ b/video/sdl_v.c @@ -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 best; uint delta; // all modes available? - if (_all_modes) - return 1; + if (_all_modes) return; // is the wanted mode among the available modes? for (i = 0; i != _num_resolutions; i++) { - if (*w == _resolutions[i][0] && *h == _resolutions[i][1]) - return 1; + if (*w == _resolutions[i][0] && *h == _resolutions[i][1]) return; } // use the closest possible resolution @@ -157,7 +155,6 @@ static int GetAvailableVideoMode(int *w, int *h) } *w = _resolutions[best][0]; *h = _resolutions[best][1]; - return 2; } extern const char _openttd_revision[]; |