Do not change video mode when changing fullscreen-res setting
authorIngo Ruhnke <grumbel@gmx.de>
Thu, 15 May 2008 07:08:19 +0000 (07:08 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Thu, 15 May 2008 07:08:19 +0000 (07:08 +0000)
SVN-Revision: 5481

src/options_menu.cpp
src/video/gl_renderer.cpp

index d94402e..9c73bb1 100644 (file)
@@ -247,8 +247,7 @@ OptionsMenu::menu_action(MenuItem* item)
     case MNID_FULLSCREEN_RESOLUTION:
       if(sscanf(item->list[item->selected].c_str(), "%dx%d", &config->fullscreen_width, &config->fullscreen_height) == 2)
         {
-          Renderer::instance()->apply_config();
-          Menu::recalc_pos();
+          // do nothing, changes are only applied when toggling fullscreen mode
         }      
       break;
 
index 79c6a6c..764f061 100644 (file)
@@ -509,6 +509,8 @@ Renderer::flip()
 void
 Renderer::resize(int w, int h)
 {
+  // This causes the screen to go black, which is annoying, but seems
+  // unavoidable with SDL at the moment
   SDL_SetVideoMode(w, h, 0, SDL_OPENGL | SDL_RESIZABLE);
 
   config->window_width  = w;