From 59c1671ad4fb2300e887b4867be7972a5a2f36b9 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sat, 24 Nov 2018 23:48:37 +0100 Subject: [PATCH] prefer DMDFO_DEFAULT in filter to ensure all resolutions are listed --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index a1c0f4d..4511621 100644 --- a/src/main.c +++ b/src/main.c @@ -219,7 +219,7 @@ HRESULT __stdcall ddraw_EnumDisplayModes(IDirectDrawImpl *This, DWORD dwFlags, L DWORD refreshRate = 0; DWORD bpp = 0; DWORD flags = 0; - DWORD fixedOutput = 0; + DWORD fixedOutput = 99998; DEVMODE m; while (EnumDisplaySettings(NULL, i, &m)) @@ -233,7 +233,7 @@ HRESULT __stdcall ddraw_EnumDisplayModes(IDirectDrawImpl *This, DWORD dwFlags, L if (flags == 0) flags = m.dmDisplayFlags; - if (fixedOutput == 0) + if (fixedOutput != DMDFO_DEFAULT) fixedOutput = m.dmDisplayFixedOutput; i++;