player: set hidpi-window-scale to no by default

This has defaulted to yes for a very long time, but evidentally it
annoys a lot of people (including myself). My argument is that this
makes no sense. mpv is for videos; not text. A 1920x1080 video should
open as 1920x1080 regardless of whatever the DPI settings of the OS is.
This can get very silly when you consider watching a 4k video which will
get this additional scale factor which is virtually never desirable.
Whether or not the OS and/or WM prevents it from getting larger than the
screen depends on a lot of things.

Previously some windowing backends required that this option be set to
yes in order to report a dpi scale value other than 1, but this should
be fixed with the previous commits. The only difference is whether or
not to scale the window by the additional factor.

Fixes #13465.
This commit is contained in:
Dudemanguy 2024-02-13 17:35:23 -06:00
parent 3b23b2c22a
commit 74b4c3c531
3 changed files with 2 additions and 2 deletions

View File

@ -48,6 +48,7 @@ Interface changes
- remove `--vo=rpi`, `--gpu-context=rpi`, and `--hwdec=mmal` - remove `--vo=rpi`, `--gpu-context=rpi`, and `--hwdec=mmal`
- add `auto` choice to `--deinterlace` - add `auto` choice to `--deinterlace`
- change `--teletext-page` default from 100 to 0 ("subtitle" in lavc) - change `--teletext-page` default from 100 to 0 ("subtitle" in lavc)
- change `--hidpi-window-scale` default to `no`
--- mpv 0.37.0 --- --- mpv 0.37.0 ---
- `--save-position-on-quit` and its associated commands now store state files - `--save-position-on-quit` and its associated commands now store state files
in %LOCALAPPDATA% instead of %APPDATA% directory by default on Windows. in %LOCALAPPDATA% instead of %APPDATA% directory by default on Windows.

View File

@ -3460,7 +3460,7 @@ Window
``--hidpi-window-scale``, ``--no-hidpi-window-scale`` ``--hidpi-window-scale``, ``--no-hidpi-window-scale``
Scale the window size according to the backing DPI scale factor from the OS Scale the window size according to the backing DPI scale factor from the OS
(default: yes). For example, if the OS DPI scaling is set to 200%, mpv's window (default: no). For example, if the OS DPI scaling is set to 200%, mpv's window
size will be multiplied by 2. size will be multiplied by 2.
``--native-fs``, ``--no-native-fs`` ``--native-fs``, ``--no-native-fs``

View File

@ -237,7 +237,6 @@ const struct m_sub_options vo_sub_opts = {
.auto_window_resize = true, .auto_window_resize = true,
.keepaspect = true, .keepaspect = true,
.keepaspect_window = true, .keepaspect_window = true,
.hidpi_window_scale = true,
.native_fs = true, .native_fs = true,
.taskbar_progress = true, .taskbar_progress = true,
.border = true, .border = true,