1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 14:14:47 +01:00

prefer DMDFO_DEFAULT in filter to ensure all resolutions are listed

This commit is contained in:
FunkyFr3sh 2018-11-24 23:48:37 +01:00
parent 85b6ad7201
commit 59c1671ad4

View File

@ -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++;