summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2014-09-17 18:31:00 +1000
committerwm4 <wm4@nowhere>2015-11-06 19:53:18 +0100
commit68ac45e4876dd8019fc46a2d4b0c20117142eb0b (patch)
treef3fb87121c86a4e80e55f39e99838c8fd7959926 /wscript_build.py
parent9e10cd9fa19747e1e9218289c2a22edcff4b66e9 (diff)
downloadmpv-68ac45e4876dd8019fc46a2d4b0c20117142eb0b.tar.bz2
mpv-68ac45e4876dd8019fc46a2d4b0c20117142eb0b.tar.xz
w32: always get screenrc from an HMONITOR
This simplifies update_screen_rect a bit. Unless --fs-screen=all is used, it will always get an HMONITOR and call GetMonitorInfo to determine its dimensions. This will make it easier for the next few commits to determine the colour profile and the refresh rate from the HMONITOR. There is a slight change in behaviour. When selecting a screen that is out of range, such as --screen=9 on a machine with only two monitors, the old code would silently select the last existing monitor. The new code prints an error message and falls back to the default screen (same as the Cocoa code.) Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'wscript_build.py')
0 files changed, 0 insertions, 0 deletions