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

fix resolution list on some 144hz setups

This commit is contained in:
FunkyFr3sh 2023-09-24 19:51:50 +02:00
parent 90dd010bbf
commit 99538c2b0d

View File

@ -146,7 +146,11 @@ HRESULT dd_EnumDisplayModes(
m.dmDisplayFlags,
m.dmDisplayFixedOutput);
if (refresh_rate != 60 && m.dmDisplayFrequency >= 50)
if (refresh_rate != 60 && refresh_rate < 120 && m.dmDisplayFrequency >= 50)
refresh_rate = m.dmDisplayFrequency;
/* Some setups with 144hz monitors only contain a very few 60hz resolutions so we can't use 60hz as filter */
if (m.dmDisplayFrequency > refresh_rate && m.dmDisplayFrequency >= 120)
refresh_rate = m.dmDisplayFrequency;
if (bpp != 32 && m.dmBitsPerPel >= 16)