From 647b360a0aa0a3f8cce75812f9d7eac5a78b7a06 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Tue, 3 Feb 2015 15:25:50 +1100 Subject: 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 --- waftools/detections/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'waftools') 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): -- cgit v1.2.3