]> git.jsancho.org Git - lugaru.git/blobdiff - Source/OpenGL_Windows.cpp
Some cleans, fullscreen is back if "--windowed" isn't passed as option.
[lugaru.git] / Source / OpenGL_Windows.cpp
index cc8103ce8e80e7cfbbf61f4093006d0c421c3aea..b25b0cba26dbf01ef8f5fc8d1c546105ee4bbe61 100644 (file)
@@ -248,7 +248,7 @@ static void toggleFullscreen(){
         exit(1);
     //reload opengl state
     initGL();
-    for(std::vector<TextureInfo>::iterator it=Game::textures.begin(); it!=Game::textures.end(); it++){
+    for(std::vector<TextureInfo>::iterator it=Game::textures.begin(); it!=Game::textures.end(); it++) {
         it->load();
     }
     pgame->text.BuildFont();
@@ -362,9 +362,9 @@ Boolean SetUp (Game & game)
        }
 
     Uint32 sdlflags = SDL_OPENGL;
-    //TODO: commented out temporarily
-    //if (!cmdline("windowed"))
-        //sdlflags |= SDL_FULLSCREEN;
+    
+    if (!cmdline("windowed"))
+        sdlflags |= SDL_FULLSCREEN;
 
     SDL_WM_SetCaption("Lugaru", "Lugaru");