diff options
author | Dudemanguy <random342@airmail.cc> | 2021-10-19 21:47:23 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-02 02:55:36 +0000 |
commit | c993d5c0ce79ab560e86da8d6d5fe25da35b4c78 (patch) | |
tree | f6833a88bf313984df738d1cecca875455aa2370 /options/options.h | |
parent | cd02b5ccf6426645796b18c0692a5c4ca1f83174 (diff) | |
download | mpv-c993d5c0ce79ab560e86da8d6d5fe25da35b4c78.tar.bz2 mpv-c993d5c0ce79ab560e86da8d6d5fe25da35b4c78.tar.xz |
player: add --auto-window-resize option
mpv's window resizing logic always automatically resized the window
whenever the video resolution changed (i.e. advancing forward in a
playlist). This simply introduces the option to make this behavior
configurable. Every windowing backend would need to implement this
behavior in their code since a reconfigure event must always be a
resize. The params of the frame changed so you either have to resize the
window to the new size of the params or make the params the same size as
the window. This commit implements it for wayland, win32, and x11.
Diffstat (limited to 'options/options.h')
-rw-r--r-- | options/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h index 2830a7a14d..a44a8253a3 100644 --- a/options/options.h +++ b/options/options.h @@ -48,6 +48,7 @@ typedef struct mp_vo_opts { struct m_geometry autofit_smaller; double window_scale; + bool auto_window_resize; bool keepaspect; bool keepaspect_window; bool hidpi_window_scale; |