From 0cc3dbb5e0f891fcad22b31fb2ae191d07caa115 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Mon, 7 Jun 2021 00:50:14 +0200 Subject: [PATCH] Revert "add limiter for max resolution" This reverts commit b721757ef79636bbf6ffee9a9b66c58564de6d7d. --- src/dd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/dd.c b/src/dd.c index beb1b15..c4219ca 100644 --- a/src/dd.c +++ b/src/dd.c @@ -131,14 +131,8 @@ HRESULT dd_EnumDisplayModes(DWORD dwFlags, LPDDSURFACEDESC lpDDSurfaceDesc, LPVO { 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++) { - if ((max_w && resolutions[i].cx > max_w) || (max_h && resolutions[i].cy > max_h)) - continue; - memset(&s, 0, sizeof(DDSURFACEDESC)); s.dwSize = sizeof(DDSURFACEDESC);