mirror of https://github.com/OpenTTD/OpenTTD
(svn r2683) Remove redundant function call propagate return value
parent
a13d515d5e
commit
dd7321a014
8
sdl.c
8
sdl.c
|
@ -628,13 +628,7 @@ static int SdlVideoMainLoop(void)
|
||||||
|
|
||||||
static bool SdlVideoChangeRes(int w, int h)
|
static bool SdlVideoChangeRes(int w, int h)
|
||||||
{
|
{
|
||||||
/* See if the mode is available. Ignore return value
|
return CreateMainSurface(w, h);
|
||||||
* 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SdlVideoFullScreen(bool full_screen)
|
static void SdlVideoFullScreen(bool full_screen)
|
||||||
|
|
Loading…
Reference in New Issue