summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-11-25 22:07:22 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2015-11-26 00:38:03 +1100
commitb7d614aa0d910a9e426bd1bd81755e43bc95214f (patch)
tree6c8076a34059f27e7ac17e8eaafc9f1aa43af95c /wscript_build.py
parentdab2e909afffd3ed479e652931d13935d5908af5 (diff)
downloadmpv-b7d614aa0d910a9e426bd1bd81755e43bc95214f.tar.bz2
mpv-b7d614aa0d910a9e426bd1bd81755e43bc95214f.tar.xz
vo_opengl: win32: test for exclusive mode
This is a hack, but unfortunately the DwmGetCompositionTimingInfo heuristic does not work in all cases (with multiple-monitors on Windows 8.1 and even with a single monitor in Windows 10.) See the comment in mp_w32_is_in_exclusive_mode() for more details. It should go without saying that if any better method of doing this reveals itself, this hack should be dropped.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 6829554c17..dedd6e2212 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -357,6 +357,7 @@ def build(ctx):
( "video/out/vo_xv.c", "xv" ),
( "video/out/w32_common.c", "win32" ),
( "video/out/win32/displayconfig.c", "win32" ),
+ ( "video/out/win32/exclusive_hack.c", "gl-win32" ),
( "video/out/wayland_common.c", "wayland" ),
( "video/out/wayland/buffer.c", "wayland" ),
( "video/out/wayland/memfile.c", "wayland" ),