summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-23 06:45:57 +0000
committertron <tron@openttd.org>2005-07-23 06:45:57 +0000
commitdd7321a014662a61ef75810302a06db867e91589 (patch)
treed26abd3cad1bbca5bc39dd898c29f93f44a948f3
parenta13d515d5ecc320932523a0c469d97686a9f81b9 (diff)
downloadopenttd-dd7321a014662a61ef75810302a06db867e91589.tar.xz
(svn r2683) Remove redundant function call propagate return value
-rw-r--r--sdl.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sdl.c b/sdl.c
index ecd06d97a..964cd6832 100644
--- a/sdl.c
+++ b/sdl.c
@@ -628,13 +628,7 @@ static int SdlVideoMainLoop(void)
static bool SdlVideoChangeRes(int w, int h)
{
- /* See if the mode is available. Ignore return value
- * since we will get back a valid resolution anyways. Either exactly
- * the same one, or one clamped to the closest available one */
- GetAvailableVideoMode(&w, &h);
-
- CreateMainSurface(w, h);
- return true;
+ return CreateMainSurface(w, h);
}
static void SdlVideoFullScreen(bool full_screen)