diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2014-09-17 18:31:00 +1000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-06 19:53:18 +0100 |
commit | 68ac45e4876dd8019fc46a2d4b0c20117142eb0b (patch) | |
tree | f3fb87121c86a4e80e55f39e99838c8fd7959926 /video/out/vo_xv.c | |
parent | 9e10cd9fa19747e1e9218289c2a22edcff4b66e9 (diff) |
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 'video/out/vo_xv.c')
0 files changed, 0 insertions, 0 deletions