Use SDL toggle call in non-windows systems.
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 10 Aug 2004 16:07:28 +0000 (16:07 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 10 Aug 2004 16:07:28 +0000 (16:07 +0000)
This should be faster and more X11 friendly.

SVN-Revision: 1732

src/misc.cpp

index 7873929..2fbe16e 100644 (file)
@@ -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: