diff options
author | pavelxdd <pavel.otchertsov@gmail.com> | 2016-12-09 21:22:33 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-27 12:00:32 +0100 |
commit | 9c90c902c11f557577f22e72a3a2db0034c511d8 (patch) | |
tree | 6297152519ff7e18c5abfc99e9d9f343a13e2274 /options/options.c | |
parent | cfda696580a994055e4532a273ce86c867ffdac4 (diff) | |
download | mpv-9c90c902c11f557577f22e72a3a2db0034c511d8.tar.bz2 mpv-9c90c902c11f557577f22e72a3a2db0034c511d8.tar.xz |
win32: snap to screen edges
Disabled by default. The snap sensitivity value depends on
the screen DPI. The default value is 16px on a 96 DPI screen.
Fixes #2248
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index ed10299480..6547f06074 100644 --- a/options/options.c +++ b/options/options.c @@ -155,6 +155,7 @@ static const m_option_t mp_vo_opt_list[] = { OPT_SETTINGSLIST("vo", video_driver_list, 0, &vo_obj_list, ), OPT_SUBSTRUCT("sws", sws_opts, sws_conf, 0), OPT_FLAG("taskbar-progress", taskbar_progress, 0), + OPT_FLAG("snap-window", snap_window, 0), OPT_FLAG("ontop", ontop, 0), OPT_FLAG("border", border, 0), OPT_FLAG("fit-border", fit_border, 0), @@ -222,6 +223,7 @@ const struct m_sub_options vo_sub_opts = { .keepaspect_window = 1, .hidpi_window_scale = 1, .taskbar_progress = 1, + .snap_window = 0, .border = 1, .fit_border = 1, .WinID = -1, |