mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
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:
parent
0147467e3a
commit
fe0d2b4ee9
@ -550,6 +550,10 @@ static double get_refresh_rate_from_gdi(const wchar_t *device)
|
|||||||
case 95:
|
case 95:
|
||||||
case 119:
|
case 119:
|
||||||
case 143:
|
case 143:
|
||||||
|
case 164:
|
||||||
|
case 239:
|
||||||
|
case 359:
|
||||||
|
case 479:
|
||||||
rv = (rv + 1) / 1.001;
|
rv = (rv + 1) / 1.001;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user