Windows: allow desktop-sized windowed modes, add 1680x1050 to defaults list.

git-svn-id: https://svn.eduke32.com/eduke32@3793 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-05-20 19:31:18 +00:00
parent d1b1fe52d8
commit 5868097deb
2 changed files with 7 additions and 7 deletions

View file

@ -48,7 +48,7 @@ char scantoasc[128] =
int32_t defaultres[][2] = int32_t defaultres[][2] =
{ {
{1920, 1440}, {1920, 1200}, {1920, 1080}, {1600, 1200}, {1600, 900}, {1366, 768}, {1280, 1024}, {1920, 1440}, {1920, 1200}, {1920, 1080}, {1680, 1050}, {1600, 1200}, {1600, 900}, {1366, 768}, {1280, 1024},
{1280, 960}, {1152, 864}, {1024, 768}, {1024, 600}, {800, 600}, {640, 480}, {640, 400}, {1280, 960}, {1152, 864}, {1024, 768}, {1024, 600}, {800, 600}, {640, 480}, {640, 400},
{512, 384}, {480, 360}, {400, 300}, {320, 240}, {320, 200}, {0, 0} {512, 384}, {480, 360}, {400, 300}, {320, 240}, {320, 200}, {0, 0}
}; };

View file

@ -1838,9 +1838,9 @@ void getvalidmodes(void)
cdsenummodes(); cdsenummodes();
#endif #endif
// windowed modes cant be bigger than the current desktop resolution // Windowed modes can be as big as the current desktop resolution, but not bigger.
maxx = desktopxdim-1; maxx = desktopxdim+1;
maxy = desktopydim-1; maxy = desktopydim+1;
// add windowed modes next // add windowed modes next
for (j=0; j < 2; j++) for (j=0; j < 2; j++)