win32: add more values for monitor refresh rate detection

Add more refresh rates for get_refresh_rate_from_gdi() now (Nov 2023) that
165 Hz is common, 240 Hz is on the rise, and 120 * N Hz is the future.
This commit is contained in:
nanahi 2023-11-01 23:04:38 -04:00 committed by sfan5
parent 0147467e3a
commit fe0d2b4ee9
1 changed files with 4 additions and 0 deletions

View File

@ -550,6 +550,10 @@ static double get_refresh_rate_from_gdi(const wchar_t *device)
case 95:
case 119:
case 143:
case 164:
case 239:
case 359:
case 479:
rv = (rv + 1) / 1.001;
}