Revert "add limiter for max resolution"
This reverts commit b721757ef7
.
This commit is contained in:
parent
b721757ef7
commit
0cc3dbb5e0
1 changed files with 0 additions and 6 deletions
6
src/dd.c
6
src/dd.c
|
@ -131,14 +131,8 @@ HRESULT dd_EnumDisplayModes(DWORD dwFlags, LPDDSURFACEDESC lpDDSurfaceDesc, LPVO
|
||||||
{ 1920, 1080 },
|
{ 1920, 1080 },
|
||||||
};
|
};
|
||||||
|
|
||||||
DWORD max_w = g_ddraw->mode.dmPelsWidth ? g_ddraw->mode.dmPelsWidth : real_GetSystemMetrics(SM_CXSCREEN);
|
|
||||||
DWORD max_h = g_ddraw->mode.dmPelsHeight ? g_ddraw->mode.dmPelsHeight : real_GetSystemMetrics(SM_CYSCREEN);
|
|
||||||
|
|
||||||
for (i = 0; i < sizeof(resolutions) / sizeof(resolutions[0]); i++)
|
for (i = 0; i < sizeof(resolutions) / sizeof(resolutions[0]); i++)
|
||||||
{
|
{
|
||||||
if ((max_w && resolutions[i].cx > max_w) || (max_h && resolutions[i].cy > max_h))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
memset(&s, 0, sizeof(DDSURFACEDESC));
|
memset(&s, 0, sizeof(DDSURFACEDESC));
|
||||||
|
|
||||||
s.dwSize = sizeof(DDSURFACEDESC);
|
s.dwSize = sizeof(DDSURFACEDESC);
|
||||||
|
|
Loading…
Reference in a new issue