[Super-tux-commit] supertux/src misc.cpp,1.4,1.5
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-08-10 16:07:38
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5484/src Modified Files: misc.cpp Log Message: Use SDL toggle call in non-windows systems. This should be faster and more X11 friendly. Index: misc.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/misc.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- misc.cpp 25 Jul 2004 19:03:36 -0000 1.4 +++ misc.cpp 10 Aug 2004 16:07:28 -0000 1.5 @@ -56,7 +56,11 @@ 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: |