]> git.jsancho.org Git - lugaru.git/blobdiff - Source/OpenGL_Full_Screen.cpp
Force a double-buffered GL context.
[lugaru.git] / Source / OpenGL_Full_Screen.cpp
index 223b0c57074e4d96807acca6ba48127326cc4916..873cf00bc6e529cdebdcc6aa612a1b89b67b7e5e 100644 (file)
@@ -956,10 +956,12 @@ Boolean SetUp (void)
            
            if(detail>2)detail=2;
            if(detail<0)detail=0;
-           if(screenwidth>3000)screenwidth=640;
                if(screenwidth<0)screenwidth=640;
-               if(screenheight>3000)screenheight=480;
                if(screenheight<0)screenheight=480;
+#if !USE_SDL  // we'll take anything that works.
+           if(screenwidth>3000)screenwidth=640;
+               if(screenheight>3000)screenheight=480;
+#endif
        }
 
        
@@ -1767,4 +1769,4 @@ int main (void)
         opstream << "Caught exception: " << error.what() << std::endl;
            opstream.close();
        }       
-}
\ No newline at end of file
+}