forked from mirror/OpenTTD
(svn r2334) - Fix (regression): moved togglefullscreen into the video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
This commit is contained in:
8
sdl.c
8
sdl.c
@@ -636,7 +636,7 @@ static bool SdlVideoChangeRes(int w, int h)
|
||||
return true;
|
||||
}
|
||||
|
||||
void ToggleFullScreen(bool full_screen)
|
||||
static void SdlVideoFullScreen(bool full_screen)
|
||||
{
|
||||
_fullscreen = full_screen;
|
||||
GetVideoModes(); // get the list of available video modes
|
||||
@@ -650,6 +650,7 @@ const HalVideoDriver _sdl_video_driver = {
|
||||
SdlVideoMakeDirty,
|
||||
SdlVideoMainLoop,
|
||||
SdlVideoChangeRes,
|
||||
SdlVideoFullScreen,
|
||||
};
|
||||
|
||||
static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
|
||||
@@ -706,9 +707,4 @@ static void DbgRedraw()
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
/* Stub for dedicated server */
|
||||
void ToggleFullScreen(bool full_screen) {}
|
||||
|
||||
#endif /* WITH_SDL */
|
||||
|
Reference in New Issue
Block a user