From 0e35c4b2871d09a87609ccd30421bdfeaf418e68 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Tue, 10 Aug 2004 16:07:28 +0000 Subject: [PATCH] Use SDL toggle call in non-windows systems. This should be faster and more X11 friendly. SVN-Revision: 1732 --- src/misc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/misc.cpp b/src/misc.cpp index 7873929f2..2fbe16e84 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -56,7 +56,11 @@ void process_options_menu(void) if(use_fullscreen != options_menu->isToggled(MNID_FULLSCREEN)) { use_fullscreen = !use_fullscreen; +#ifdef WIN32 Setup::video(screen->w,screen->h); +#else + SDL_WM_ToggleFullScreen(screen); +#endif } break; case MNID_SOUND: -- 2.11.0