(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:
Darkvater
2005-05-16 16:19:32 +00:00
parent effbba74f5
commit 7daaf1f100
8 changed files with 18 additions and 10 deletions

8
sdl.c
View File

@@ -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 */