summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorpavelxdd <pavel.otchertsov@gmail.com>2016-12-09 21:22:33 +0300
committerwm4 <wm4@nowhere>2017-01-27 12:00:32 +0100
commit9c90c902c11f557577f22e72a3a2db0034c511d8 (patch)
tree6297152519ff7e18c5abfc99e9d9f343a13e2274 /options
parentcfda696580a994055e4532a273ce86c867ffdac4 (diff)
downloadmpv-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')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 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,
diff --git a/options/options.h b/options/options.h
index 6199eae5fe..b0687ac9e5 100644
--- a/options/options.h
+++ b/options/options.h
@@ -10,6 +10,7 @@ typedef struct mp_vo_opts {
struct m_obj_settings *video_driver_list;
int taskbar_progress;
+ int snap_window;
int ontop;
int fullscreen;
int border;