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] =
{
{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},
{512, 384}, {480, 360}, {400, 300}, {320, 240}, {320, 200}, {0, 0}
};

View File

@ -13,9 +13,9 @@
#define bDIPROP_DEADZONE MAKEDIPROP(5)
#define bDIPROP_SATURATION MAKEDIPROP(6)
#else
#define bMAKEDIPROP(prop) ((REFGUID)(prop))
#define bDIPROP_BUFFERSIZE bMAKEDIPROP(1)
#define bDIPROP_DEADZONE bMAKEDIPROP(5)
#define bMAKEDIPROP(prop) ((REFGUID)(prop))
#define bDIPROP_BUFFERSIZE bMAKEDIPROP(1)
#define bDIPROP_DEADZONE bMAKEDIPROP(5)
#define bDIPROP_SATURATION bMAKEDIPROP(6)
#endif
@ -1838,9 +1838,9 @@ void getvalidmodes(void)
cdsenummodes();
#endif
// windowed modes cant be bigger than the current desktop resolution
maxx = desktopxdim-1;
maxy = desktopydim-1;
// Windowed modes can be as big as the current desktop resolution, but not bigger.
maxx = desktopxdim+1;
maxy = desktopydim+1;
// add windowed modes next
for (j=0; j < 2; j++)