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:
parent
90dd010bbf
commit
99538c2b0d
6
src/dd.c
6
src/dd.c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user