From f549cec0aceba4721d69b3ebdcd72a93f1c2c122 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Thu, 29 Sep 2016 23:21:23 +1000 Subject: w32_common: implement VOCTRL_GET_DISPLAY_NAMES This should make display-names usable on Windows. It returns a list of GDI monitor names like "\\.\DISPLAY1". Since it may be useful to get the monitor that Windows considers associated with the window (with MonitorFromWindow,) this will always be returned as the first argument. This monitor is the one used for display-fps and icc-profile-auto. --- DOCS/man/input.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 8e61c22daa..c7a9d26cac 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1492,7 +1492,10 @@ Property list ``display-names`` Names of the displays that the mpv window covers. On X11, these - are the xrandr names (LVDS1, HDMI1, DP1, VGA1, etc.). + are the xrandr names (LVDS1, HDMI1, DP1, VGA1, etc.). On Windows, these + are the GDI names (\\.\DISPLAY1, \\.\DISPLAY2, etc.) and the first display + in the list will be the one that Windows considers associated with the + window (as determined by the MonitorFromWindow API.) ``display-fps`` (RW) The refresh rate of the current display. Currently, this is the lowest FPS @@ -1528,12 +1531,12 @@ Property list ``dvb-channel`` (W) Pair of integers: card,channel of current DVB stream. - Can be switched to switch to another channel on the same card. + Can be switched to switch to another channel on the same card. ``dvb-channel-name`` (RW) Name of current DVB program. On write, a channel-switch to the named channel on the same - card is performed. Can also be used for channel switching. + card is performed. Can also be used for channel switching. ``sub-text`` Return the current subtitle text. Formatting is stripped. If a subtitle -- cgit v1.2.3