summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2016-10-25 15:59:13 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2016-11-11 21:37:04 +0100
commitaceeeaf9bb7d3549c22557b8afe50838119f0b89 (patch)
tree612cf321968d79d0cae33c166bfe5626eb6a70c8 /options/options.c
parent98e7b4e538d42b6df1aa3c5f4a4c6c162a06b737 (diff)
downloadmpv-aceeeaf9bb7d3549c22557b8afe50838119f0b89.tar.bz2
mpv-aceeeaf9bb7d3549c22557b8afe50838119f0b89.tar.xz
cocoa: option to scale window by HiDPI scale factor
Deactivating this options makes it possible to circumvent the default OS X behavior of using points. Windows on HiDPI resolutions won't open in double the size anymore and videos are display in their native resolution when windowed. Fixes #3716
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 7a4deae776..e4c682303b 100644
--- a/options/options.c
+++ b/options/options.c
@@ -187,6 +187,7 @@ static const m_option_t mp_vo_opt_list[] = {
OPT_FLAG("fs-black-out-screens", fs_black_out_screens, 0),
OPT_FLAG("keepaspect", keepaspect, UPDATE_VIDEOPOS),
OPT_FLAG("keepaspect-window", keepaspect_window, 0),
+ OPT_FLAG("hidpi-window-scale", hidpi_window_scale, 0),
#if HAVE_X11
OPT_CHOICE("x11-netwm", x11_netwm, 0,
({"auto", 0}, {"no", -1}, {"yes", 1})),
@@ -216,6 +217,7 @@ const struct m_sub_options vo_sub_opts = {
.panscan = 0.0f,
.keepaspect = 1,
.keepaspect_window = 1,
+ .hidpi_window_scale = 1,
.taskbar_progress = 1,
.border = 1,
.fit_border = 1,