diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2015-02-03 15:25:50 +1100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-06 19:53:18 +0100 |
commit | 647b360a0aa0a3f8cce75812f9d7eac5a78b7a06 (patch) | |
tree | 4d6c7e98434975f2db2147d69f43183d47b8f8ee /waftools/detections | |
parent | 68ac45e4876dd8019fc46a2d4b0c20117142eb0b (diff) | |
download | mpv-647b360a0aa0a3f8cce75812f9d7eac5a78b7a06.tar.bz2 mpv-647b360a0aa0a3f8cce75812f9d7eac5a78b7a06.tar.xz |
w32: use DisplayConfig API to retrieve correct monitor refresh rate
This is based on an older patch by James Ross-Gowan. It was rebased and
cleaned up. Also, the DWM API usage present in the older patch was
removed, because DWM reports nonsense rates at least on Windows 8.1
(they are rounded to integers, just like with the old GDI API - except
the GDI API had a good excuse, as it could report only integers).
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index d3e6b34455..284a7a5b9e 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -49,7 +49,7 @@ def __add_clang_flags__(ctx): "-Wno-tautological-constant-out-of-range-compare" ] def __add_mswin_flags__(ctx): - ctx.env.CFLAGS += ['-D_WIN32_WINNT=0x600', '-DUNICODE', '-DCOBJMACROS', + ctx.env.CFLAGS += ['-D_WIN32_WINNT=0x0601', '-DUNICODE', '-DCOBJMACROS', '-U__STRICT_ANSI__'] def __add_mingw_flags__(ctx): |