[Supertux-Commit] r5518 - trunk/supertux/src

grumbel at millhouse.dreamhost.com grumbel at millhouse.dreamhost.com
Sun May 25 09:42:19 PDT 2008


Author: grumbel
Date: 2008-05-25 09:42:19 -0700 (Sun, 25 May 2008)
New Revision: 5518

Modified:
   trunk/supertux/src/options_menu.cpp
Log:
Reposition menu on fullscreen toggle

Modified: trunk/supertux/src/options_menu.cpp
===================================================================
--- trunk/supertux/src/options_menu.cpp	2008-05-25 15:59:10 UTC (rev 5517)
+++ trunk/supertux/src/options_menu.cpp	2008-05-25 16:42:19 UTC (rev 5518)
@@ -279,7 +279,8 @@
     case MNID_FULLSCREEN:
       if(config->use_fullscreen != options_menu->is_toggled(MNID_FULLSCREEN)) {
         config->use_fullscreen = !config->use_fullscreen;
-        init_video();
+        init_video(); // FIXME: Should call apply_config instead
+        Menu::recalc_pos();
         config->save();
       }
       break;




More information about the Supertux-Commit mailing list