From 9c90c902c11f557577f22e72a3a2db0034c511d8 Mon Sep 17 00:00:00 2001 From: pavelxdd Date: Fri, 9 Dec 2016 21:22:33 +0300 Subject: 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 --- options/options.c | 2 ++ options/options.h | 1 + 2 files changed, 3 insertions(+) (limited to 'options') 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; -- cgit v1.2.3