From: Ricardo Cruz Date: Tue, 10 Aug 2004 16:07:28 +0000 (+0000) Subject: Use SDL toggle call in non-windows systems. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0e35c4b2871d09a87609ccd30421bdfeaf418e68;hp=13b2baf22e0686299aa27982dad180779d00216b;p=supertux.git Use SDL toggle call in non-windows systems. This should be faster and more X11 friendly. SVN-Revision: 1732 --- 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: