From aceeeaf9bb7d3549c22557b8afe50838119f0b89 Mon Sep 17 00:00:00 2001 From: Akemi Date: Tue, 25 Oct 2016 15:59:13 +0200 Subject: 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 --- options/options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options/options.c') 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, -- cgit v1.2.3