]> git.jsancho.org Git - lugaru.git/blobdiff - Source/OpenGL_Full_Screen.cpp
Allow user to set any reasonable resolution.
[lugaru.git] / Source / OpenGL_Full_Screen.cpp
index 7a932388493b1d578e216e3394b14c147bb0b4a4..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
        }